/* AI Visibility Checker: tool page form, progress, results and the badge modal. Brand tokens from the theme. */
.aac-sec-wrap { padding: 48px 0 8px; }
.aac { background: #fff; border: 1px solid var(--aa-line, #E5E7EB); border-radius: 18px; box-shadow: var(--aa-shadow, 0 10px 30px rgba(6, 56, 49, .08)); padding: 24px; max-width: 980px; margin: 0 auto; color: var(--aa-navy, #1F2937); font-family: var(--aa-font, Poppins, system-ui, sans-serif); }
.aac .aac-h { font-size: 1.25rem; font-weight: 700; color: var(--aa-deep, #063831); line-height: 1.3; margin: 0 0 .4em; }
.aac-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.aac-wide { grid-column: 1 / -1; }
.aac-field { margin: 0 0 4px; }
.aac-field label, .aac-mode legend { display: block; font-weight: 600; font-size: .95rem; color: var(--aa-navy, #1F2937); margin-bottom: 6px; }
.aac-opt { font-weight: 500; font-size: .8rem; color: var(--aa-grey, #6B7280); margin-left: 4px; }
.aac-field input, .aac-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid #D1D5DB; border-radius: 10px; font: 500 16px var(--aa-font, inherit); color: var(--aa-ink, #060C13); background: #fff; box-sizing: border-box; }
.aac-field textarea { min-height: 110px; resize: vertical; }
.aac-field input[aria-invalid="true"], .aac-field textarea[aria-invalid="true"] { border-color: #B42318; }
.aac-pages { margin-top: 12px; }
.aac-mode { border: 0; padding: 0; margin: 18px 0 8px; }
.aac-mode label, .aac-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.45; margin: 0 0 8px; cursor: pointer; }
.aac-mode input, .aac-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: 0 0 auto; accent-color: #063831; }
.aac-consent { margin-top: 14px; color: var(--aa-navy, #1F2937); }
.aac-err { margin: 6px 0 0; font-size: .85rem; color: #B42318; font-weight: 500; }
.aac-form-err { margin-top: 12px; }
.aac-go { margin-top: 18px; min-height: 50px; padding-left: 28px; padding-right: 28px; }
.aac-go[disabled] { opacity: .6; cursor: progress; }
.aac-note { margin: 12px 0 0; font-size: .85rem; color: var(--aa-grey, #6B7280); line-height: 1.5; }
.aac-note a, .aac a { color: var(--aa-link, #0A4A41); }
.aac .aa-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.aac .aa-turnstile { margin-top: 14px; min-height: 65px; }

.aac-progress { padding: 8px 0; }
.aac-bar { height: 10px; background: var(--aa-mint, #E8F7F6); border-radius: 999px; overflow: hidden; margin: 14px 0 10px; }
.aac-bar span { display: block; height: 100%; width: 3%; background: #15B5B0; border-radius: 999px; transition: width .6s ease; }
.aac-step { font-weight: 600; color: var(--aa-deep, #063831); margin: 0; }

.aac-out h2 { font-size: 1.3rem; margin: 0 0 .6em; color: var(--aa-deep, #063831); }
.aac-out h3, .aac-report h3 { font-size: 1.05rem; margin: 1.2em 0 .5em; }
.aac-report h2 { font-size: 1.3rem; margin: 0 0 .6em; color: var(--aa-deep, #063831); }
.aac-sum { display: flex; gap: 20px; align-items: center; padding: 4px 0 18px; border-bottom: 1px solid var(--aa-line, #E5E7EB); }
.aac-score { flex: 0 0 auto; width: 112px; height: 112px; border-radius: 50%; display: flex; align-items: baseline; justify-content: center; padding-top: 30px; box-sizing: border-box; border: 8px solid #15B5B0; background: var(--aa-mint, #E8F7F6); }
.aac-band-60-79 { border-color: #7CCFCB; }
.aac-band-40-59 { border-color: #F4B740; background: #FFF8EA; }
.aac-band-0-39 { border-color: #D9534F; background: #FDECEC; }
.aac-band-na { border-color: #D1D5DB; background: #F9FAFB; }
.aac-num { font-size: 2.2rem; font-weight: 700; color: var(--aa-deep, #063831); line-height: 1; }
.aac-of { font-size: .9rem; color: var(--aa-grey, #6B7280); }
.aac-kicker { margin: 0; font-size: .85rem; color: var(--aa-grey, #6B7280); font-weight: 500; }
.aac-meta { margin: 0; font-size: .9rem; color: #4B5563; }
.aac-sec { padding: 20px 0; border-bottom: 1px solid var(--aa-line, #E5E7EB); }
.aac-notice { background: #FFF4E5; border-left: 4px solid #F4B740; color: #6B3A00; padding: 10px 14px; border-radius: 8px; font-size: .92rem; margin: 12px 0 0; }
.aac-muted { color: var(--aa-grey, #6B7280); }
.aac-small { display: block; font-size: .8rem; color: #4B5563; line-height: 1.4; margin-top: 4px; }
.aac-vis { margin: 0 0 4px; font-size: 1rem; }
.aac-num-sm { font-size: 1.6rem; font-weight: 700; color: var(--aa-deep, #063831); margin-right: 6px; }
.aac-fixes { margin: 0; padding-left: 1.3em; }
.aac-fixes li { margin: 0 0 10px; line-height: 1.55; }
.aac-fixpages { display: block; font-size: .82rem; color: #4B5563; }
.aac-list { list-style: none; margin: 0; padding: 0; }
.aac-list li { padding: 8px 0; border-bottom: 1px dashed var(--aa-line, #E5E7EB); line-height: 1.5; font-size: .95rem; }
.aac-mark { display: inline-block; font-size: .74rem; font-weight: 600; border-radius: 999px; padding: 2px 9px; line-height: 1.5; white-space: nowrap; }
.aac-ok { background: #E7F6EC; color: #116329; }
.aac-warn { background: #FFF4E5; color: #8A4B00; }
.aac-bad { background: #FDECEC; color: #9B1C1C; }
.aac-info { background: var(--aa-mist, #F5FAFA); color: var(--aa-navy, #1F2937); border: 1px solid var(--aa-line, #E5E7EB); }
.aac-skip { background: #F3F4F6; color: #4B5563; }
.aac-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.aac-table { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 6px 0; }
.aac-table th, .aac-table td { border: 1px solid var(--aa-line, #E5E7EB); padding: 8px 10px; text-align: left; vertical-align: top; }
.aac-table thead th { background: var(--aa-mist, #F5FAFA); font-weight: 600; }
.aac-table tbody th { font-weight: 500; min-width: 160px; }
.aac-qtable td { min-width: 150px; }
.aac-ptable td { min-width: 130px; }
.aac-ans summary { cursor: pointer; font-size: .8rem; color: var(--aa-link, #0A4A41); font-weight: 600; margin-top: 6px; }
.aac-ans-body { font-size: .84rem; max-height: 320px; overflow: auto; background: var(--aa-mist, #F5FAFA); padding: 8px 10px; border-radius: 8px; margin-top: 6px; }
.aac-ans-body p { margin: 0 0 .6em; }
.aac-gsugg { width: 100%; height: 120px; border: 0; margin-top: 6px; background: #fff; }
.aac-pagesbox > summary { cursor: pointer; list-style: none; }
.aac-pagesbox > summary::-webkit-details-marker { display: none; }
.aac-pagesbox > summary h2 { display: inline; }
.aac-pagesbox > summary::after { content: " Show"; font-size: .85rem; color: var(--aa-link, #0A4A41); font-weight: 600; }
.aac-pagesbox[open] > summary::after { content: " Hide"; }
.aac-cta { background: var(--aa-mint, #E8F7F6); border-radius: 14px; padding: 20px; margin: 22px 0 8px; }
.aac-cta p { margin: 0 0 8px; }
.aac-cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px !important; }
.aac-link { font-weight: 600; margin: 14px 0 0; }
.aac-foot { font-size: .82rem; color: var(--aa-grey, #6B7280); margin: 14px 0 0; }
.aac-fail { padding: 8px 0; }
.aac a:focus-visible, .aac button:focus-visible, .aac input:focus-visible, .aac textarea:focus-visible, .aac summary:focus-visible { outline: 3px solid #15B5B0; outline-offset: 3px; }

/* Modal (opened from the side badge). */
.aac-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.aac-modal[hidden] { display: none; }
.aac-backdrop { position: absolute; inset: 0; background: rgba(6, 56, 49, .55); }
.aac-dialog { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
.aac-dialog .aac { border: 0; box-shadow: none; max-width: none; }
.aac-dialog-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; padding: 16px 24px 0; }
.aac-dialog-head p { margin: 0; font-weight: 700; font-size: 1.1rem; color: var(--aa-deep, #063831); }
.aac-close { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--aa-mist, #F5FAFA); color: var(--aa-navy, #1F2937); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.aac-close:hover { background: var(--aa-mint, #E8F7F6); }
html.aac-lock { overflow: hidden; scrollbar-gutter: stable; }
.aac [hidden], .aac-modal[hidden] { display: none !important; }

@media (max-width: 680px) {
	.aac { padding: 18px; border-radius: 14px; }
	.aac-grid { grid-template-columns: 1fr; }
	.aac-sum { flex-direction: column; align-items: flex-start; }
	.aac-dialog { max-height: calc(100vh - 16px); border-radius: 14px; }
	.aac-modal { padding: 8px; }
	.aac-dialog-head { padding: 12px 16px 0; }
}
@media (prefers-reduced-motion: reduce) { .aac-bar span { transition: none; } }
/* Buttons keep the theme colors inside the checker (the generic link color above must not win). */
.aac a.btn-primary { color: #fff; }
.aac a.btn-primary:hover { color: var(--aa-deep, #063831); }
.aac a.btn-ghost { color: var(--aa-deep, #063831); }
.aac [tabindex="-1"]:focus { outline: none; }

/* AI table: one card per question below 768px, one row per engine, no sideways scrolling. */
.aac-qnum { display: none; }
@media (max-width: 767px) {
	.aac-ai .aac-scroll { overflow-x: visible; }
	.aac-qtable, .aac-qtable tbody, .aac-qtable tr, .aac-qtable th, .aac-qtable td { display: block; width: 100%; box-sizing: border-box; }
	.aac-qtable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.aac-qtable { border: 0; }
	.aac-qtable tr { border: 1px solid var(--aa-line, #E5E7EB); border-radius: 12px; margin: 0 0 14px; overflow: hidden; background: #fff; }
	.aac-qtable tbody th { background: var(--aa-mist, #F5FAFA); border: 0; border-bottom: 1px solid var(--aa-line, #E5E7EB); padding: 12px 14px; font-weight: 600; min-width: 0; }
	.aac-qnum { display: block; font-size: .75rem; font-weight: 600; color: var(--aa-grey, #6B7280); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
	.aac-qtable td { border: 0; border-bottom: 1px solid var(--aa-line, #E5E7EB); padding: 10px 14px 10px 112px; position: relative; min-width: 0; min-height: 44px; }
	.aac-qtable td:last-child { border-bottom: 0; }
	.aac-qtable td::before { content: attr(data-label); position: absolute; left: 14px; top: 11px; width: 90px; font-weight: 600; font-size: .85rem; color: var(--aa-navy, #1F2937); }
	.aac-qtable .aac-ans { margin-left: -98px; }
	.aac-qtable .aac-ans summary { margin-left: 98px; }
	.aac-qtable .aac-ans-body { max-height: 360px; }
}
.aac-again { margin: 18px 0 0; }
/* Guide sections on the tool page (SEO, AEO and GEO upgrade, 21 Nov 2026): platform table and results screenshot. */
.aac-gtable { overflow-x: auto; margin: 1.2em 0; }
.aac-gtable table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.aac-gtable th, .aac-gtable td { border: 1px solid var(--aa-line); padding: 10px 12px; text-align: left; vertical-align: top; }
.aac-gtable th { background: var(--aa-mist); }
.aac-gtable td:first-child { font-weight: 600; white-space: nowrap; }
.aac-gshot { margin: 1.2em 0 2em; }
.aac-gshot img { width: 100%; height: auto; border: 1px solid var(--aa-line); border-radius: 12px; }
/* Badge popup (21 Nov 2026): gold primary button (gold is for the badge and this button only) and a bottom sheet below 768px. */
.aac-modal .aac .aac-go { background: #F5B301; border-color: #F5B301; color: #063831; }
.aac-modal .aac .aac-go:hover, .aac-modal .aac .aac-go:focus-visible { background: #FFC21A; border-color: #FFC21A; color: #063831; }
.aac-modal .aac .aac-go:focus-visible { outline: 2px solid #063831; outline-offset: 3px; }
.aac-modal .aac-close:focus-visible { outline: 2px solid #063831; outline-offset: 2px; }
@media (max-width: 767px) {
	.aac-modal { align-items: flex-end; padding: 0; }
	.aac-dialog { max-width: none; height: calc(100% - 8px); max-height: none; border-radius: 18px 18px 0 0; }
	.aac-close { border: 1px solid var(--aa-line, #E5E7EB); }
}
