/* ==========================================================================
   AI Audit — simulated scan modal (#asm-audit-modal)
   Ported 1:1 from Adult SEO Minds so the Website Audit tool shows the same
   "176 parameters analyzed" progress experience. Self-contained: the Adult
   SEO Minds palette is scoped to .asm-audit-modal so it renders identically
   here without touching TripleMinds' own theme variables.
   ========================================================================== */
.asm-audit-modal {
    /* Adult SEO Minds tokens, scoped to this subtree (do not leak to the page) */
    --c-text: #F5F5F7;
    --c-muted: #8A8A99;
    --c-hint: #6A6A78;
    --c-primary: #FF2D78;
    --c-primary-light: #FF6FA0;
    --c-accent: #E63946;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.20);
    --border-accent: rgba(255, 45, 120, 0.25);
    --gradient: linear-gradient(135deg, #FF2D78, #E63946);
    --radius-sm: 8px;
    --radius-pill: 999px;
    --font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}
.asm-audit-modal, .asm-audit-modal *, .asm-audit-modal *::before, .asm-audit-modal *::after { box-sizing: border-box; }
.asm-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

.asm-audit-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 1.25rem; opacity: 0; visibility: hidden; transition: opacity 0.25s ease, visibility 0.25s ease; }
.asm-audit-modal.is-open { opacity: 1; visibility: visible; }
.asm-audit-modal__overlay { position: absolute; inset: 0; background: rgba(6, 4, 10, 0.80); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.asm-audit-modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 720px; max-height: 90vh; overflow-y: auto; background: linear-gradient(180deg, #171022, #0e0a16); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 20px; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6); padding: clamp(1.5rem, 4vw, 2.4rem); color: var(--c-text); }
.asm-audit-modal__close { position: absolute; top: 0.7rem; right: 1rem; background: none; border: 0; color: var(--c-muted); font-size: 1.7rem; line-height: 1; cursor: pointer; }
.asm-audit-modal__close:hover { color: var(--c-text); }
.asm-audit__badge { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--c-primary-light); background: rgba(255, 45, 120, 0.10); border: 1px solid var(--border-accent); border-radius: var(--radius-pill); padding: 0.35em 0.8em; }
.asm-audit__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gradient); animation: asm-audit-pulse 1.2s ease-in-out infinite; }
.asm-audit__target { margin: 0.7rem 0 0.4rem; font-size: 1.15rem; font-family: var(--font-display); }
.asm-audit__target strong { color: var(--c-primary-light); }
.asm-audit__barwrap { display: flex; align-items: center; gap: 0.75rem; margin: 0.4rem 0 0.9rem; }
.asm-audit__bar { flex: 1; height: 10px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, 0.08); appearance: none; -webkit-appearance: none; overflow: hidden; }
.asm-audit__bar::-webkit-progress-bar { background: rgba(255, 255, 255, 0.08); border-radius: 999px; }
.asm-audit__bar::-webkit-progress-value { background: var(--gradient); border-radius: 999px; transition: width 0.6s ease; }
.asm-audit__bar::-moz-progress-bar { background: var(--gradient); border-radius: 999px; }
.asm-audit__pct { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; min-width: 3.2ch; text-align: right; }
.asm-audit__status { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.4rem; font-weight: 600; }
.asm-audit__spin { width: 16px; height: 16px; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.2); border-top-color: var(--c-primary); animation: asm-audit-spin 0.7s linear infinite; }
.asm-audit__meta { margin: 0 0 1rem; font-size: 0.85rem; color: var(--c-muted); }
.asm-audit__meta strong { color: var(--c-accent); }
.asm-audit__log-h { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.45rem; font-family: var(--font-display); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--c-text); }
.asm-audit__log-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--gradient); animation: asm-audit-pulse 1.2s ease-in-out infinite; }
.asm-audit__log { list-style: none; margin: 0 0 1.1rem; padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; max-height: 240px; overflow-y: auto; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--border); border-radius: 12px; font-size: 0.85rem; }
.asm-audit__log-item { display: flex; align-items: flex-start; gap: 0.55rem; line-height: 1.4; animation: asm-audit-rise 0.35s ease both; }
.asm-audit__log-item::before { content: ""; width: 15px; height: 15px; flex: none; margin-top: 2px; border-radius: 50%; }
.asm-audit__log-item.is-info { color: var(--c-muted); }
.asm-audit__log-item.is-info::before { background: rgba(255, 255, 255, 0.16); }
.asm-audit__log-item.is-pass { color: #9fe7bf; }
.asm-audit__log-item.is-pass::before { background: rgba(110, 231, 168, 0.22); }
.asm-audit__log-item.is-warn { color: #ffd27a; }
.asm-audit__log-item.is-warn::before { background: rgba(255, 210, 122, 0.24); }
.asm-audit__log-item.is-fail { color: #ff9aa2; }
.asm-audit__log-item.is-fail::before { background: rgba(255, 77, 109, 0.26); }
.asm-audit__download { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; width: 100%; padding: 0.9em 1.5em; border: 1px solid var(--border-strong); border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.05); color: var(--c-muted); font-weight: 700; cursor: not-allowed; opacity: 0.6; }
.asm-audit__lock { width: 12px; height: 10px; flex: none; border: 2px solid currentColor; border-top: 0; border-radius: 0 0 3px 3px; position: relative; margin-top: 4px; }
.asm-audit__lock::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 8px; height: 8px; transform: translateX(-50%); border: 2px solid currentColor; border-bottom: 0; border-radius: 5px 5px 0 0; }
.asm-audit__hint { text-align: center; font-size: 0.78rem; color: var(--c-hint); margin: 0.6rem 0 0; }
/* capture overlay */
.asm-audit__capture { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 1.25rem; background: rgba(10, 6, 16, 0.84); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); border-radius: 20px; }
.asm-audit__capture[hidden] { display: none; }
.asm-audit__capture-card { width: 100%; max-width: 380px; background: linear-gradient(180deg, #1d1432, #140e22); border: 1px solid var(--border-strong); border-radius: 16px; padding: 1.7rem; text-align: center; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6); animation: asm-audit-rise 0.3s ease both; }
.asm-audit__capture-title { font-family: var(--font-display); font-size: 1.3rem; margin: 0 0 0.35rem; }
.asm-audit__capture-sub { color: var(--c-muted); font-size: 0.9rem; margin: 0 0 1.1rem; }
.asm-audit__capture-input { width: 100%; padding: 0.85em 1em; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); color: var(--c-text); font: inherit; text-align: center; }
.asm-audit__capture-input:focus { outline: none; border-color: var(--c-primary); }
.asm-audit__capture-btn { width: 100%; margin-top: 0.7rem; padding: 0.85em 1.5em; border: 0; border-radius: var(--radius-pill); background: var(--gradient); color: #fff; font-weight: 700; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.asm-audit__capture-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(255, 45, 120, 0.4); }
.asm-audit__capture-msg { min-height: 1.1em; margin: 0.6rem 0 0; font-size: 0.8rem; font-weight: 600; }
.asm-audit__capture-msg.err { color: #ff9aa2; }
.asm-audit__capture-msg.ok { color: #9fe7bf; }
.asm-audit__capture-skip { display: inline-block; margin-top: 0.5rem; background: none; border: 0; color: var(--c-hint); font-size: 0.78rem; text-decoration: underline; cursor: pointer; }
/* done state */
.asm-audit__done { text-align: center; padding: 1rem 0 0.4rem; }
.asm-audit__done[hidden] { display: none; }
.asm-audit__done-ic { display: inline-block; width: 54px; height: 54px; border-radius: 50%; background: var(--gradient); margin-bottom: 0.8rem; position: relative; }
.asm-audit__done-ic::after { content: ""; position: absolute; left: 20px; top: 14px; width: 10px; height: 19px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.asm-audit__done-title { font-family: var(--font-display); font-size: 1.45rem; margin: 0 0 0.4rem; }
.asm-audit__done-text { color: var(--c-muted); margin: 0; }
body.asm-modal-open { overflow: hidden; }
@keyframes asm-audit-spin { to { transform: rotate(360deg); } }
@keyframes asm-audit-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes asm-audit-rise { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .asm-audit__spin, .asm-audit__dot, .asm-audit__log-item, .asm-audit__capture-card { animation: none; } }

/* ==========================================================================
   Spotlight the audit tool section so it's noticeable even on a fast scroll.
   1) A soft tinted "spotlight" band behind the whole #wsa-tool section so it
      reads as a distinct zone (not just more white).
   2) A gentle pulsing ring on the search bar + CTA — motion catches the eye
      at any scroll speed. Pauses while typing; off for reduced-motion.
   (Loads after website-audit.css, so these win.)
   ========================================================================== */
.wsa-tool {
    background:
        radial-gradient(72% 130% at 50% 0%, rgba(10, 102, 194, 0.08), transparent 68%),
        linear-gradient(180deg, #f5f8fd 0%, #ffffff 62%);
    border-top: 1px solid rgba(10, 102, 194, 0.14);
    border-bottom: 1px solid rgba(10, 102, 194, 0.14);
    scroll-margin-top: 80px;
}
.wsa-tool__bar { animation: wsa-tool-attn 2.6s ease-in-out infinite; }
.wsa-tool__bar:focus-within { animation: none; }
.wsa-tool__btn { animation: wsa-tool-cta 2.6s ease-in-out infinite; }
@keyframes wsa-tool-attn {
    0%, 100% { box-shadow: 0 18px 44px -26px rgba(12, 16, 24, 0.28), 0 0 0 0 rgba(236, 32, 36, 0.45); }
    50%      { box-shadow: 0 20px 46px -22px rgba(236, 32, 36, 0.30), 0 0 0 12px rgba(236, 32, 36, 0); }
}
@keyframes wsa-tool-cta {
    0%, 100% { box-shadow: 0 12px 26px -12px rgba(236, 32, 36, 0.5); }
    50%      { box-shadow: 0 12px 26px -12px rgba(236, 32, 36, 0.5), 0 0 20px 1px rgba(236, 32, 36, 0.5); }
}
@media (prefers-reduced-motion: reduce) {
    .wsa-tool__bar, .wsa-tool__btn { animation: none; }
}

/* ==========================================================================
   Live Google Lighthouse results inside the scan modal (real data block).
   ========================================================================== */
.asm-audit__live { margin: 0 0 1rem; }
.asm-audit__live[hidden] { display: none; }
.asm-audit__live-h { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem; font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--c-text); }
.asm-audit__live-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #34c759; box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.16); }
.asm-audit__scores { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.asm-audit__score { text-align: center; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); }
.asm-audit__score-n { display: block; font-family: var(--font-display); font-size: 1.45rem; font-weight: 800; line-height: 1; color: var(--c-text); }
.asm-audit__score-l { display: block; margin-top: 5px; font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--c-muted); }
.asm-audit__score.is-good { border-color: rgba(110, 231, 168, 0.40); background: rgba(110, 231, 168, 0.08); }
.asm-audit__score.is-good .asm-audit__score-n { color: #6ee7a8; }
.asm-audit__score.is-mid { border-color: rgba(255, 210, 122, 0.40); background: rgba(255, 210, 122, 0.08); }
.asm-audit__score.is-mid .asm-audit__score-n { color: #ffd27a; }
.asm-audit__score.is-bad { border-color: rgba(255, 154, 162, 0.40); background: rgba(255, 77, 109, 0.08); }
.asm-audit__score.is-bad .asm-audit__score-n { color: #ff9aa2; }
.asm-audit__vitals { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.asm-audit__vital { display: flex; align-items: baseline; gap: 5px; padding: 5px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); }
.asm-audit__vital-k { font-size: 0.62rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--c-muted); }
.asm-audit__vital-v { font-size: 0.8rem; font-weight: 700; color: var(--c-text); }
.asm-audit__live-issues { list-style: none; margin: 0.7rem 0 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.asm-audit__live-issues li { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.82rem; color: rgba(255, 255, 255, 0.82); line-height: 1.4; }
.asm-audit__live-issues li::before { content: ""; width: 7px; height: 7px; margin-top: 6px; flex: none; border-radius: 50%; background: #ff9aa2; }
@media (max-width: 600px) { .asm-audit__scores { grid-template-columns: 1fr 1fr; } }

/* Hero right-column image (replaces the live scorecard widget). */
.wsa-hero__img { display: block; width: 100%; height: auto; border-radius: 18px; border: 1px solid var(--wsa-blue-line, rgba(10, 102, 194, 0.40)); box-shadow: 0 30px 60px -28px rgba(10, 102, 194, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; }
