/* Homepage AI visibility checker (js/ai-visibility-checker.js) */
.button--ghost {
    background: #fff;
    color: var(--primary-color);
    border: 2px solid rgba(99, 102, 241, 0.35);
}
.button--ghost:hover { border-color: var(--primary-color); background: rgba(99, 102, 241, 0.06); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hero--tool .hero__content { grid-template-columns: 1fr; gap: 0; }
.hero--tool .hero__data { max-width: 820px; margin: 0 auto; text-align: center; }
.hero--tool .hero__title { font-size: 3.25rem; }
.hero--tool .hero__description { max-width: 640px; margin-left: auto; margin-right: auto; }

.avc-form {
    display: flex;
    gap: 0.5rem;
    max-width: 640px;
    margin: 0 auto;
    padding: 0.5rem;
    background: #fff;
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}
.avc-form:focus-within { border-color: var(--primary-color); }
.avc-form input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    font-size: 1.125rem;
    padding: 0.75rem 1rem;
    background: transparent;
    color: var(--text-primary);
}
.avc-form .button { flex-shrink: 0; }
.avc-form .button:disabled { opacity: 0.7; cursor: wait; transform: none; }
.avc-trust {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.avc-also {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}
.avc-also a { color: var(--primary-color); font-weight: 600; }

.avc-results { max-width: 880px; margin: 2.5rem auto 0; text-align: left; scroll-margin-top: 6rem; }
.avc-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    padding: 1.75rem;
}

.avc-progress__title { font-size: 1.1rem; margin-bottom: 1rem; }
.avc-progress__note { font-size: 0.9rem; color: var(--text-secondary); margin-top: 1rem; }
.avc-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.avc-steps li { position: relative; padding-left: 1.9rem; color: var(--text-secondary); }
.avc-steps li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}
.avc-steps li.is-active { color: var(--text-primary); font-weight: 600; }
.avc-steps li.is-active::before {
    border-color: var(--primary-color);
    border-top-color: transparent;
    animation: avc-spin 0.8s linear infinite;
}
.avc-steps li.is-done { color: var(--text-primary); }
.avc-steps li.is-done::before { background: #10b981; border-color: #10b981; }
@keyframes avc-spin { to { transform: rotate(360deg); } }

.avc-error p { margin-bottom: 0.5rem; }

.avc-score { display: flex; gap: 1.5rem; align-items: center; }
.avc-score__dial {
    flex-shrink: 0;
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    display: flex;
    align-items: baseline;
    justify-content: center;
    padding-top: 2.1rem;
    border: 8px solid #ef4444;
}
.avc-score--mid .avc-score__dial { border-color: #f59e0b; }
.avc-score--good .avc-score__dial { border-color: #10b981; }
.avc-score__num { font-size: 2.5rem; font-weight: 800; line-height: 1; }
.avc-score__of { font-size: 0.95rem; color: var(--text-secondary); font-weight: 600; }
.avc-score__label { font-size: 0.9rem; color: var(--text-secondary); overflow-wrap: anywhere; }
.avc-score__headline { font-size: 1.5rem; font-weight: 800; line-height: 1.25; margin: 0.15rem 0 0.35rem; }
.avc-score__verdict { color: var(--text-primary); }
.avc-score__market { font-size: 0.85rem; color: var(--text-secondary); margin-top: 0.35rem; }

.avc-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.25rem; }
.avc-actions .button { white-space: normal; text-align: center; }

.avc-block { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border-color); }
.avc-block__title { font-size: 1.15rem; font-weight: 700; }
.avc-block__sub { font-size: 0.92rem; color: var(--text-secondary); margin: 0.2rem 0 1rem; }

.avc-prompts { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.avc-prompt { border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 0.9rem 1rem; }
.avc-prompt__head { display: flex; justify-content: space-between; gap: 0.75rem; align-items: flex-start; }
.avc-prompt__q { font-weight: 600; }
.avc-prompt__rivals { font-size: 0.88rem; color: #b45309; margin-top: 0.35rem; overflow-wrap: anywhere; }
.avc-prompt__more { margin-top: 0.5rem; font-size: 0.9rem; }
.avc-prompt__more summary { cursor: pointer; color: var(--primary-color); font-weight: 600; }
.avc-prompt__snippet { white-space: pre-line; color: var(--text-secondary); margin-top: 0.5rem; }
.avc-prompt__cites-label { font-weight: 600; margin-top: 0.6rem; }
.avc-prompt__cites { padding-left: 1.25rem; list-style: decimal; }
.avc-prompt__cites a { color: var(--primary-color); overflow-wrap: anywhere; }

.avc-badge { flex-shrink: 0; font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 999px; white-space: nowrap; }
.avc-badge--ok { background: #d1fae5; color: #065f46; }
.avc-badge--no { background: #fee2e2; color: #991b1b; }

.avc-sov { display: grid; grid-template-columns: minmax(0, 11rem) 1fr 2.75rem; gap: 0.75rem; align-items: center; margin-bottom: 0.5rem; font-size: 0.92rem; }
.avc-sov__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avc-sov--self .avc-sov__name { font-weight: 700; }
.avc-sov__track { height: 0.6rem; background: var(--bg-secondary); border-radius: 999px; overflow: hidden; }
.avc-sov__fill { display: block; height: 100%; background: #94a3b8; border-radius: 999px; }
.avc-sov--self .avc-sov__fill { background: var(--primary-color); }
.avc-sov__val { text-align: right; color: var(--text-secondary); }

.avc-aeo__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.avc-aeo__grade {
    flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
    width: 4.5rem; height: 4.5rem; border-radius: 0.9rem; border: 2px solid currentColor;
}
.avc-aeo__grade span { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.avc-aeo__grade small { font-size: 0.75rem; margin-top: 0.2rem; }
.avc-aeo__grade--good { color: #10b981; }
.avc-aeo__grade--mid { color: #f59e0b; }
.avc-aeo__grade--bad { color: #ef4444; }

.avc-fixes { background: rgba(245, 158, 11, 0.08); border: 1px solid rgba(245, 158, 11, 0.35); border-radius: 0.75rem; padding: 0.9rem 1rem 0.9rem 1rem; margin-bottom: 1rem; }
.avc-fixes__title { font-weight: 700; margin-bottom: 0.4rem; }
.avc-fixes ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; font-size: 0.92rem; }

.avc-group { border: 1px solid var(--border-color); border-radius: 0.75rem; padding: 0.75rem 1rem; margin-top: 0.75rem; }
.avc-group summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; list-style: none; }
.avc-group summary::-webkit-details-marker { display: none; }
.avc-group summary::after { content: '▾'; color: var(--text-secondary); transition: transform 0.15s; }
.avc-group:not([open]) summary::after { transform: rotate(-90deg); }
.avc-group__title { font-weight: 700; font-size: 1.05rem; }
.avc-group__meta { margin-left: auto; font-size: 0.88rem; color: var(--text-secondary); }
.avc-group .avc-block__sub { margin-top: 0.5rem; }

.avc-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.avc-check { border-left: 3px solid var(--border-color); padding: 0.15rem 0 0.15rem 0.8rem; }
.avc-check__head { display: flex; justify-content: space-between; gap: 0.75rem; }
.avc-check__label { font-weight: 600; }
.avc-check__status { flex: 0 0 auto; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.avc-check__details { font-size: 0.88rem; color: var(--text-secondary); margin: 0.15rem 0 0; overflow-wrap: anywhere; }
.avc-check__fix { font-size: 0.88rem; margin: 0.25rem 0 0; }
.avc-check--pass { border-left-color: #10b981; }
.avc-check--pass .avc-check__status { color: #10b981; }
.avc-check--warn { border-left-color: #f59e0b; }
.avc-check--warn .avc-check__status { color: #f59e0b; }
.avc-check--fail { border-left-color: #ef4444; }
.avc-check--fail .avc-check__status { color: #ef4444; }
.avc-check--info .avc-check__status { color: var(--text-secondary); }

.avc-upsell {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(79, 70, 229, 0.14));
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.avc-upsell h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.avc-upsell p { font-size: 0.92rem; color: var(--text-secondary); }
.avc-fineprint { font-size: 0.85rem; color: var(--text-secondary); margin-top: 1.25rem; }
.avc-fineprint a { color: var(--primary-color); }

/* Blog / guide hand-off box */
.avc-inline {
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.06), rgba(79, 70, 229, 0.12));
    border: 1px solid rgba(99, 102, 241, 0.25);
}
.avc-inline__title { font-size: 1.2rem; font-weight: 800; margin: 0 0 0.35rem; }
.avc-inline__text { color: var(--text-secondary); margin: 0 0 1rem; }
.avc-inline .avc-form { margin: 0; box-shadow: none; max-width: none; }
.avc-inline .avc-trust { margin-top: 0.6rem; font-size: 0.85rem; }

@media screen and (max-width: 768px) {
    .hero--tool .hero__title { font-size: 2.25rem; }
    .avc-form { flex-direction: column; padding: 0.6rem; }
    .avc-form input { text-align: center; }
    .avc-form .button { width: 100%; }
    .avc-card { padding: 1.25rem; }
    .avc-score { flex-direction: column; text-align: center; }
    .avc-upsell { flex-direction: column; align-items: stretch; text-align: center; }
    .avc-sov { grid-template-columns: minmax(0, 7.5rem) 1fr 2.5rem; }
    .avc-prompt__head { flex-direction: column; }
}

/* Share with team */
.avc-share-btn { display: inline-flex; align-items: center; gap: 0.45rem; }
.avc-share-btn:disabled { opacity: 0.7; cursor: wait; }
.avc-share { margin-top: 1rem; padding: 1rem 1.1rem; border: 1px solid var(--primary-color); border-radius: 0.75rem; background: rgba(99, 102, 241, 0.04); }
.avc-share__title { font-weight: 700; margin-bottom: 0.6rem; }
.avc-share__url { display: flex; gap: 0.5rem; }
.avc-share__url input { flex: 1; min-width: 0; padding: 0.6rem 0.75rem; border: 1px solid var(--border-color); border-radius: 0.5rem; font: inherit; font-size: 0.92rem; background: var(--bg-card, #fff); color: var(--text-primary); }
.avc-share__url .button { flex-shrink: 0; padding: 0.6rem 1rem; }
.avc-share__btns { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.avc-share__btn { display: inline-flex; align-items: center; padding: 0.45rem 0.9rem; border-radius: 999px; border: 1px solid var(--border-color); background: var(--bg-card, #fff); color: var(--text-primary); font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; text-decoration: none; }
.avc-share__btn:hover { border-color: var(--primary-color); }
.avc-share__btn--whatsapp { background: #25d366; border-color: #25d366; color: #fff; }
.avc-share__btn--whatsapp:hover { border-color: #1da851; background: #1da851; }
.avc-share__note { font-size: 0.82rem; color: var(--text-secondary); margin-top: 0.7rem; }
.avc-share__error { flex-basis: 100%; font-size: 0.88rem; color: #b91c1c; }

/* Shared report page (sellonllm.com/<brand>) */
.avc-shared { padding: 7rem 0 4rem; background: var(--bg-color); min-height: 80vh; }
.avc-shared__head { max-width: 880px; margin: 0 auto; }
.avc-shared__head h1 { font-size: 2.1rem; font-weight: 800; line-height: 1.2; margin: 0.35rem 0 0.6rem; overflow-wrap: anywhere; }
.avc-shared__lead { color: var(--text-secondary); line-height: 1.65; }
.avc-shared .avc-results { margin-top: 1.5rem; }
.avc-shared__own { max-width: 880px; margin: 2rem auto 0; text-align: center; padding: 1.75rem 1.25rem; border: 1px dashed var(--border-color); border-radius: 1rem; }
.avc-shared__own h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.4rem; }
.avc-shared__own p { color: var(--text-secondary); margin-bottom: 1rem; }
@media (max-width: 600px) {
    .avc-shared__head h1 { font-size: 1.6rem; }
    .avc-share__url { flex-direction: column; }
}

.avc-demo-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #92400e; background: #fef3c7; border-radius: 999px; padding: 0.1rem 0.5rem; margin-right: 0.35rem; vertical-align: 1px; }
.avc-demo-note a { color: var(--primary-color); font-weight: 600; }

/* Named vs linked (mentions vs citations) */
.avc-score__sub { font-size: 0.95rem; color: var(--text-secondary); margin: -0.15rem 0 0.35rem; }
.avc-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0 0 1rem; }
.avc-legend > div { background: var(--bg-secondary); border-radius: 0.6rem; padding: 0.6rem 0.8rem; font-size: 0.86rem; }
.avc-legend dt { font-weight: 700; color: var(--text-primary); }
.avc-legend dd { margin: 0.15rem 0 0; color: var(--text-secondary); line-height: 1.45; }
.avc-prompt__q { font-weight: 700; margin: 0 0 0.5rem; }
.avc-prompt__status { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.7rem; }
.avc-pill { font-size: 0.8rem; font-weight: 700; padding: 0.2rem 0.65rem; border-radius: 999px; white-space: nowrap; }
.avc-pill--ok { background: #d1fae5; color: #065f46; }
.avc-pill--no { background: #fee2e2; color: #991b1b; }
.avc-prompt__part { margin-top: 0.6rem; }
.avc-prompt__label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 0.35rem; }
.avc-prompt__none { font-size: 0.88rem; color: var(--text-secondary); }
.avc-prompt__miss { font-size: 0.86rem; color: #991b1b; margin-top: 0.4rem; }
.avc-brands { list-style: none; counter-reset: brand; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.avc-brand { counter-increment: brand; font-size: 0.88rem; font-weight: 600; padding: 0.2rem 0.6rem; border-radius: 0.45rem; background: var(--bg-secondary); border: 1px solid var(--border-color); }
.avc-brand::before { content: counter(brand) '. '; color: var(--text-secondary); font-weight: 500; }
.avc-brand small { font-weight: 500; }
.avc-brand--self { background: #d1fae5; border-color: #6ee7b7; color: #065f46; }
.avc-brand--rival { background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.avc-sources { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.25rem; font-size: 0.88rem; }
.avc-source a { color: var(--primary-color); text-decoration: none; overflow-wrap: anywhere; }
.avc-source a:hover { text-decoration: underline; }
.avc-source__host { font-weight: 600; }
.avc-source__path { color: var(--text-secondary); }
.avc-source__tag { margin-left: 0.4rem; font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.45rem; border-radius: 999px; background: #fef3c7; color: #92400e; }
.avc-source__tag--self { background: #d1fae5; color: #065f46; }
.avc-sov { grid-template-columns: minmax(0, 10rem) 1fr 1fr; }
.avc-sov--one { grid-template-columns: minmax(0, 10rem) 1fr; }
.avc-sov--head { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); margin-bottom: 0.35rem; }
.avc-sov__cell { display: flex; align-items: center; gap: 0.5rem; min-width: 0; }
.avc-sov__cell .avc-sov__track { flex: 1; }
.avc-sov__cell--link .avc-sov__fill { background: #64748b; }
.avc-sov--self .avc-sov__cell--link .avc-sov__fill { background: #10b981; }
@media (max-width: 600px) {
    .avc-legend { grid-template-columns: 1fr; }
    .avc-sov { grid-template-columns: minmax(0, 6.5rem) 1fr 1fr; gap: 0.5rem; }
    .avc-sov--one { grid-template-columns: minmax(0, 6.5rem) 1fr; }
}
