/* Free AI search readiness check: URL form, live scan, partial report, lead gate. Flat surfaces, brand tokens only. */
.scan-start { max-width: 760px; margin: 0 auto; }
.urlrow { display: flex; gap: 12px; }
.urlrow input { flex: 1; min-width: 0; min-height: 56px; font-size: 18px; padding: 12px 16px; border: 1px solid #8795AD; border-radius: var(--radius-control); font-family: var(--font-body); color: var(--aura8-ink); }
.urlrow input:focus { outline: 3px solid var(--aura8-electric-blue); outline-offset: 1px; border-color: var(--aura8-electric-blue); }
.urlrow .btn { min-height: 56px; white-space: nowrap; }
.err { display: flex; gap: 8px; align-items: flex-start; color: var(--aura8-error); font-weight: 500; font-size: 14px; line-height: 20px; margin: 10px 0 0; }
.err::before { content: "!"; flex: none; width: 18px; height: 18px; border: 2px solid currentColor; border-radius: 50%; font-size: 11px; line-height: 14px; text-align: center; font-weight: 600; }
.err[hidden] { display: none; }
.scan-start { animation: rise .5s var(--ease) both; }

/* Scanner */
.scanner { border-radius: var(--radius-panel); padding: 40px; max-width: 1040px; margin: 0 auto; animation: rise .5s var(--ease) both; }
.scan-grid { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.wfsvg { width: 100%; height: auto; display: block; overflow: hidden; border-radius: 14px; }
.wf-page { fill: #0f1a2e; stroke: #2a3a5c; stroke-width: 2; }
.wf { fill: #22304d; transition: fill .35s var(--ease); }
.wf.lit-b { fill: var(--aura8-dark-blue); }
.wf.lit-c { fill: var(--aura8-dark-cyan); }
.wf.lit-l { fill: var(--aura8-stage-lime); }
.wf-scan { fill: var(--aura8-stage-lime); animation: sweep 2.4s ease-in-out infinite alternate; }
.scanner.finished .wf-scan { animation: none; opacity: 0; }
@keyframes sweep { from { transform: translateY(0); } to { transform: translateY(262px); } }
@keyframes spin { to { transform: rotate(360deg); } }
.scan-pct { font-family: var(--font-display); font-weight: 500; font-size: 96px; line-height: 100px; letter-spacing: -0.03em; color: #fff; display: flex; align-items: baseline; gap: 4px; }
.scan-pct small { font-size: 36px; color: var(--aura8-muted-on-dark); letter-spacing: 0; }
.scan-bar { display: flex; height: 8px; background: #22304d; border-radius: 4px; overflow: hidden; margin: 8px 0 28px; }
.scan-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--aura8-dark-blue) 0 40%, var(--aura8-dark-cyan) 40% 75%, var(--aura8-stage-lime) 75% 100%); background-size: 100vw 100%; background-attachment: local; }
.scan-steps { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.scan-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; line-height: 20px; color: #7f8fab; transition: color var(--duration-ui); }
.scan-steps li.active { color: #fff; }
.scan-steps li.done { color: var(--aura8-muted-on-dark); }
.dot { position: relative; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #33456a; flex: none; transition: background var(--duration-ui), border-color var(--duration-ui); }
.active .dot { border-color: #33456a; border-top-color: var(--aura8-dark-cyan); animation: spin .8s linear infinite; }
.done .dot { background: var(--aura8-stage-lime); border-color: var(--aura8-stage-lime); }
.done .dot::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid var(--aura8-deep-navy); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.scan-log { background: #070c16; border: 1px solid #2a3a5c; border-radius: var(--radius-control); padding: 14px 16px; height: 168px; overflow: hidden; font-size: 12px; line-height: 20px; color: var(--aura8-muted-on-dark); display: flex; flex-direction: column; justify-content: flex-end; }
.scan-log .ll { animation: rise .3s var(--ease) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scan-log .ll b { color: var(--aura8-dark-cyan); font-weight: 500; margin-right: 8px; }
.scanner .eyebrow { margin-bottom: 8px; }

/* Report */
#scan-report { animation: rise .6s var(--ease) both; }
.rep-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--aura8-line); }
.rep-score .big { font-family: var(--font-display); font-weight: 500; font-size: 96px; line-height: 100px; letter-spacing: -0.03em; margin: 0; }
.rep-score .big small { font-size: 32px; color: var(--aura8-muted-text); letter-spacing: 0; }
.bar-one { height: 10px; background: var(--aura8-paper); border: 1px solid var(--aura8-line); border-radius: 5px; overflow: hidden; margin: 12px 0 24px; max-width: 480px; }
.bar-one i { display: block; height: 100%; width: 0; background: var(--aura8-electric-blue); transition: width 1s var(--ease); }
.rep-score h2 { font-size: 32px; line-height: 40px; margin-bottom: 8px; }
.rep-h { font-size: 28px; line-height: 36px; margin: 48px 0 24px; }
.find { padding: 28px; }
.find h3 { font-size: 20px; line-height: 28px; margin: 12px 0 8px; }
.find p { font-size: 15px; line-height: 22px; }
.find .fix { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--aura8-line); }
.find { animation: rise .5s var(--ease) both; }
.rep-locked { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; margin-top: 56px; align-items: start; }
.locked { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.locked li { display: flex; align-items: center; gap: 14px; border: 1px solid var(--aura8-line); border-radius: var(--radius-control); background: var(--aura8-paper); padding: 14px 16px; min-height: 56px; animation: rise .4s var(--ease) both; }
.locked .t { font-weight: 500; flex: 1; }
.lk { position: relative; width: 14px; height: 11px; background: var(--aura8-muted-text); border-radius: 2px; margin-top: 6px; flex: none; }
.lk::before { content: ""; position: absolute; left: 2px; top: -7px; width: 6px; height: 8px; border: 2px solid var(--aura8-muted-text); border-bottom: 0; border-radius: 6px 6px 0 0; }
.ph { display: flex; flex-direction: column; gap: 5px; width: 90px; filter: blur(2.5px); }
.ph i { display: block; height: 6px; border-radius: 3px; background: var(--aura8-line); }
.ph i:last-child { width: 60%; }
.gate { margin-top: 56px; border: 2px solid var(--aura8-electric-blue); padding: 40px; max-width: 880px; }
.gate .lead { margin: 12px 0 28px; }
.gate .form { max-width: none; }
.field input.invalid { border-color: var(--aura8-error); }

@media (max-width: 1100px) {
  .scan-grid { grid-template-columns: 1fr; gap: 28px; }
  .scan-visual { max-width: 200px; }
  .rep-head, .rep-locked { grid-template-columns: 1fr; gap: 32px; }
  .scan-steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .urlrow { flex-direction: column; }
  .urlrow .btn { width: 100%; }
  .scanner { padding: 24px 20px; }
  .scan-pct, .rep-score .big { font-size: 64px; line-height: 68px; }
  .gate { padding: 24px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-scan, .active .dot { animation: none !important; }
  .scan-start, .scanner, #scan-report, .find, .locked li, .scan-log .ll { animation: none !important; }
}

/* Containment so long log lines never widen the page */
.scan-grid { grid-template-columns: 240px minmax(0, 1fr); }
.scan-grid > *, .scan-info, .scan-log, .scan-log .ll { min-width: 0; max-width: 100%; }
@media (max-width: 1100px) { .scan-grid { grid-template-columns: minmax(0, 1fr); } }
.scanner { overflow: hidden; }

/* Report v2: nine dimensions, grade chip, crawler row */
.rep-score .big .gradechip { display: inline-block; vertical-align: middle; margin-left: 12px; font-family: var(--font-mono); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--aura8-line); border-radius: 999px; padding: 6px 14px; color: var(--aura8-ink); background: var(--aura8-paper); }
.bar .ptag { font-style: normal; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--aura8-electric-blue); margin-left: 8px; }
.crawl { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.find .ftype { float: right; font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--aura8-muted-text); }
.locked .sv { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--aura8-muted-text); }
.locked li[hidden] { display: none; }
.rep-pillars { margin-top: 48px; }
.bar { grid-template-columns: minmax(200px, 300px) 1fr 64px; }
@media (max-width: 1100px) { .bar { grid-template-columns: 1fr 1fr 56px; } }
