/* =========================================================
   Not to Nine — Agent Readiness (home section + scanner pages)
   Sits on top of style.css; uses its tokens.
   ========================================================= */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- home section ---------- */
.ar-home { position: relative; padding: clamp(80px, 10vw, 140px) 0 clamp(40px, 6vw, 80px); overflow: hidden; isolation: isolate; }
.ar-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; filter: blur(90px); opacity: calc(var(--aurora-opacity) * .9); }
.ar-bg span { position: absolute; border-radius: 50%; animation: drift 34s var(--ease) infinite alternate; }
.ar-bg span:nth-child(1) { width: 46vmax; height: 46vmax; left: -12%; top: 0; background: radial-gradient(circle, var(--pink), transparent 60%); opacity: .35; }
.ar-bg span:nth-child(2) { width: 40vmax; height: 40vmax; right: -14%; top: 22%; background: radial-gradient(circle, var(--violet), transparent 60%); opacity: .4; animation-delay: -12s; }
.ar-bg span:nth-child(3) { width: 36vmax; height: 36vmax; left: 30%; bottom: -10%; background: radial-gradient(circle, var(--amber), transparent 62%); opacity: .25; animation-delay: -20s; }

.ar-head { text-align: center; max-width: 940px; margin: 0 auto clamp(40px, 5vw, 64px); }
.ar-head h2 { font-size: clamp(34px, 5.4vw, 74px); }
.ar-head .lede { margin: 22px auto 0; }
.ar-crest i { background: var(--pink); animation-name: livePingPink; }
@keyframes livePingPink { 0% { box-shadow: 0 0 0 0 rgba(213,2,96,.55); } 70% { box-shadow: 0 0 0 9px rgba(213,2,96,0); } 100% { box-shadow: 0 0 0 0 rgba(213,2,96,0); } }
.ar-grad { background: linear-gradient(90deg, var(--pink), var(--violet) 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* the shift */
.ar-shift { display: grid; gap: 14px; max-width: 1100px; margin: 0 auto; }
.ar-lane { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 16px; padding: 16px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ar-lane.ar-now { border-color: color-mix(in srgb, var(--pink) 45%, var(--line)); box-shadow: 0 24px 60px -36px rgba(213,2,96,.55); }
.ar-tag { font-family: "JetBrains Mono", monospace; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ar-now .ar-tag { color: var(--pink); font-weight: 700; }
.ar-steps { display: grid; grid-template-columns: 1fr 36px 1fr 36px 1fr; align-items: stretch; }
.ar-step { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bg) 70%, transparent); border: 1px solid var(--line); min-width: 0; }
.ar-step b { font-size: 15.5px; }
.ar-step small { font-size: 13px; color: var(--muted); line-height: 1.4; }
.ar-links small { display: flex; flex-direction: column; gap: 5px; padding-top: 4px; }
.ar-links em { display: block; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--cyan) 55%, transparent); width: 92%; }
.ar-links em:nth-child(2) { width: 78%; } .ar-links em:nth-child(3) { width: 86%; } .ar-links em:nth-child(4) { width: 64%; }
.ar-agent { position: relative; overflow: hidden; }
.ar-agent::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--violet) 30%, transparent), transparent); transform: translateX(-100%); animation: arSweep 2.8s var(--ease) infinite; }
@keyframes arSweep { 60%, 100% { transform: translateX(100%); } }
.ar-answer { border-color: color-mix(in srgb, var(--pink) 60%, var(--line)); background: color-mix(in srgb, var(--pink) 10%, var(--bg)); }
.ar-arrow { align-self: center; justify-self: center; width: 22px; height: 2px; background: var(--muted); position: relative; opacity: .7; }
.ar-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--muted); border-right: 0; }
.ar-now .ar-arrow { background: var(--pink); opacity: 1; }
.ar-now .ar-arrow::after { border-left-color: var(--pink); }

/* two views */
.ar-views { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 1100px; margin: clamp(26px, 4vw, 44px) auto 0; }
.ar-view { margin: 0; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--glass-line); background: var(--glass); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ar-view figcaption { font-weight: 650; display: flex; align-items: center; gap: 10px; font-size: 15.5px; }
.ar-view figcaption small { color: var(--muted); font-weight: 500; }
.ar-view p { margin: 0; font-size: 14.5px; color: var(--muted); }
.ar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); flex: none; }
.ar-mock { flex: 1; min-height: 230px; border-radius: 14px; overflow: hidden; background: linear-gradient(160deg, #f6efe6, #e9eef6); color: #0a1220; display: flex; flex-direction: column; }
.ar-mock-nav { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.ar-mock-nav i { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--amber), var(--pink)); }
.ar-mock-nav span { width: 38px; height: 6px; border-radius: 3px; background: #c7ccd6; }
.ar-mock-nav b { margin-left: auto; width: 56px; height: 20px; border-radius: 999px; background: #0a1220; }
.ar-mock-hero { padding: 10px 18px 6px; display: flex; flex-direction: column; gap: 8px; }
.ar-mock-hero strong { font-size: 21px; line-height: 1.05; font-stretch: 120%; font-variation-settings: "wdth" 120; letter-spacing: -.02em; }
.ar-mock-hero span { height: 6px; width: 78%; border-radius: 3px; background: #c7ccd6; }
.ar-mock-hero span + span { width: 58%; }
.ar-mock-hero em { font-style: normal; align-self: flex-start; margin-top: 4px; padding: 6px 12px; border-radius: 999px; background: var(--pink); color: #fff; font-size: 12px; font-weight: 700; }
.ar-mock-cards { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 14px; }
.ar-mock-cards span { height: 54px; border-radius: 10px; background: linear-gradient(135deg, #c9d6ea, #f0d9e4); }
.ar-mock-cards span:nth-child(2) { background: linear-gradient(135deg, #d8e9df, #c9d6ea); }
.ar-mock-cards span:nth-child(3) { background: linear-gradient(135deg, #f3e1c4, #e7d3f0); }
.ar-term { flex: 1; margin: 0; min-height: 230px; padding: 16px 16px; border-radius: 14px; background: #070b11; color: #c9d4e3; font: 12.6px/1.75 "JetBrains Mono", ui-monospace, monospace; overflow-x: auto; white-space: normal; position: relative; }
.ar-term .ok { color: #7fe3c4; } .ar-term .bad { color: #ff7aa8; } .ar-term .warn { color: #ffc861; } .ar-term .dim { color: #7c8aa0; }
.ar-term code { font: inherit; }
.ar-term code > span { display: block; white-space: pre; opacity: 0; transform: translateX(-6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.ar-views.in .ar-term code > span { opacity: 1; transform: none; }
.ar-views.in .ar-term code > span:nth-child(2) { transition-delay: .25s; } .ar-views.in .ar-term code > span:nth-child(3) { transition-delay: .5s; }
.ar-views.in .ar-term code > span:nth-child(4) { transition-delay: .75s; } .ar-views.in .ar-term code > span:nth-child(5) { transition-delay: 1s; }
.ar-views.in .ar-term code > span:nth-child(6) { transition-delay: 1.25s; } .ar-views.in .ar-term code > span:nth-child(7) { transition-delay: 1.5s; }
.ar-views.in .ar-term code > span:nth-child(8) { transition-delay: 1.9s; }

/* stats */
.ar-stats { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1100px; margin: clamp(36px, 5vw, 60px) auto 0; border-top: 1px solid var(--line); }
.ar-stats div { padding: 22px 22px 0 0; display: flex; flex-direction: column; gap: 8px; }
.ar-stats div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.ar-stats b { font-size: clamp(36px, 4.4vw, 58px); line-height: 1; font-weight: 800; font-stretch: 125%; font-variation-settings: "wdth" 125; letter-spacing: -.03em; }
.ar-stats div:nth-child(3) b { font-size: clamp(32px, 3.6vw, 48px); }
.ar-stats b small { font-size: .45em; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.ar-stats span { font-size: 15px; color: var(--muted); max-width: 34ch; }
.ar-stats em { font-style: normal; color: var(--text); font-weight: 650; }
.ar-source { max-width: 1100px; margin: 18px auto 0; }
.ar-source a { color: var(--text); }

/* stages */
.ar-stages { list-style: none; padding: 0; margin: clamp(36px, 5vw, 60px) auto 0; max-width: 1100px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ar-stages li { padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--glass); display: flex; flex-direction: column; gap: 6px; }
.ar-stages span { font-family: "JetBrains Mono", monospace; font-size: 12.5px; color: var(--pink); }
.ar-stages b { font-size: 22px; font-stretch: 120%; font-variation-settings: "wdth" 120; }
.ar-stages p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* CTA */
.ar-cta { position: relative; overflow: hidden; isolation: isolate; max-width: 1100px; margin: clamp(36px, 5vw, 60px) auto 0; padding: clamp(28px, 5vw, 60px); text-align: center; }
.ar-cta .aurora { inset: -50% -20% auto -20%; height: 220%; opacity: var(--aurora-opacity); }
.ar-cta > *:not(.aurora) { position: relative; }
.ar-cta h3 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 800; line-height: 1.08; font-stretch: 125%; font-variation-settings: "wdth" 125; }
.ar-cta h3 span { display: block; color: var(--muted); }
.ar-cta-sub { max-width: 60ch; margin: 16px auto 26px; color: var(--muted); }
.ar-cta-sub em { font-style: normal; color: var(--text); font-weight: 650; }
.ar-form { display: flex; align-items: center; gap: 0; max-width: 640px; margin: 0 auto; padding: 6px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.ar-form:focus-within { border-color: var(--cyan); }
.ar-prefix { padding-left: 18px; color: var(--muted); font-family: "JetBrains Mono", monospace; font-size: 14px; }
.ar-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 17px; padding: 12px 10px 12px 4px; outline: none; }
.ar-form input::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
.ar-form .btn { flex: none; }
.ar-err { margin: 12px 0 0; color: var(--pink); font-weight: 600; font-size: 14.5px; }
.ar-assure { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; font-size: 14px; color: var(--muted); }
.ar-assure li[hidden] { display: none; }
.ar-assure li { display: inline-flex; align-items: center; gap: 8px; }
.ar-assure li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }
.ar-assure strong { color: var(--text); }

@media (max-width: 900px) {
  .ar-lane { grid-template-columns: 1fr; gap: 10px; }
  .ar-views { grid-template-columns: 1fr; }
  .ar-stats { grid-template-columns: 1fr; }
  .ar-stats div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 18px; }
  .ar-stages { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .ar-steps { grid-template-columns: 1fr; gap: 0; }
  .ar-arrow { width: 2px; height: 16px; margin: 4px 0; }
  .ar-arrow::after { right: -4px; top: auto; bottom: -2px; border: 5px solid transparent; border-top: 7px solid var(--muted); border-bottom: 0; }
  .ar-now .ar-arrow::after { border-top-color: var(--pink); border-left-color: transparent; }
  .ar-form { flex-wrap: wrap; border-radius: 22px; padding: 8px; }
  .ar-prefix { display: none; }
  .ar-form input { padding: 12px 12px; width: 100%; flex-basis: 100%; }
  .ar-form .btn { width: 100%; justify-content: center; }
  .ar-term { font-size: 11.5px; }
  .ar-term code > span { white-space: pre-wrap; padding-left: 2ch; text-indent: -2ch; }
}
