/* ==========================================================================
   Volt Digital — SEO / AEO / GEO check (ai-check.html)
   ========================================================================== */

:root {
  --ac-good: #2fb350; --ac-mid: #f08c00; --ac-low: #ff3b30;
  --ac-good-ink: #1d7a35; --ac-mid-ink: #a85a00; --ac-low-ink: #c4231a;
}

/* Domain input: glass capsule */
.ac-form {
  display: flex; gap: 8px; max-width: 620px; margin-top: 36px; padding: 8px;
  border-radius: 999px;
  background: linear-gradient(150deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .5));
  -webkit-backdrop-filter: blur(24px) saturate(190%); backdrop-filter: blur(24px) saturate(190%);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, .05), 0 24px 60px -24px rgba(16, 24, 40, .3);
  transition: box-shadow .2s;
}
.ac-form:focus-within { box-shadow: inset 0 1px 0 #fff, 0 0 0 4px rgba(79, 107, 255, .18), 0 24px 60px -24px rgba(16, 24, 40, .3); }
.ac-form input {
  flex: 1; min-width: 0; font: inherit; font-size: 1.1rem; color: var(--text);
  background: none; border: none; outline: none; padding: 10px 18px;
}
.ac-form input::placeholder { color: var(--faint); }
.ac-form .btn { flex-shrink: 0; }
.ac-form .btn:disabled { opacity: .6; cursor: wait; transform: none; box-shadow: none; }
.ac-tags { margin-top: 20px; }
.ac-tags span { background: rgba(255, 255, 255, .7); }
@media (max-width: 560px) {
  .ac-form { flex-direction: column; border-radius: 26px; }
  .ac-form input { padding: 12px 14px; }
}

.ac-results { scroll-margin-top: 100px; }
.ac-results:empty { display: none; }

/* Loading + error */
.ac-loading { display: flex; align-items: center; gap: 14px; color: var(--muted); padding: 40px 0; }
.ac-spinner {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--line-strong); border-top-color: var(--text);
  animation: ac-spin .8s linear infinite;
}
@keyframes ac-spin { to { transform: rotate(360deg); } }
.ac-error { padding: 18px 20px; border-radius: var(--radius-sm); max-width: 720px; background: rgba(255, 59, 48, .08); color: #8e1a14; }

/* Score rings */
.ac-ring { position: relative; flex-shrink: 0; --ac-c: var(--ac-low); }
.ac-ring svg { display: block; transform: rotate(-90deg); overflow: visible; }
.ac-ring circle { fill: none; }
.ac-ring-bg { stroke: rgba(0, 0, 0, .07); }
.ac-ring-fg { stroke: var(--ac-c); stroke-linecap: round; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .7, .2, 1); }
.ac-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ac-ring-num b { font-weight: 700; font-size: 1.9rem; letter-spacing: -.05em; line-height: 1; color: var(--text); }
.ac-ring-num span { font-size: .72rem; font-weight: 600; color: var(--muted); margin-top: 3px; }
.ac-ring-big .ac-ring-num b { font-size: 3.4rem; }
.ac-top, .ac-good { --ac-c: var(--ac-good); --ac-ink: var(--ac-good-ink); }
.ac-mid { --ac-c: var(--ac-mid); --ac-ink: var(--ac-mid-ink); }
.ac-low { --ac-c: var(--ac-low); --ac-ink: var(--ac-low-ink); }

/* Summary */
.ac-summary { display: flex; align-items: center; gap: 44px; padding: 40px; }
.ac-summary h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); max-width: 24ch; }
.ac-summary .eyebrow { margin-bottom: 12px; overflow-wrap: anywhere; }
.ac-mini { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 26px; }
.ac-mini a {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 16px;
  border-radius: 999px; font-size: .92rem; font-weight: 500; color: var(--text-2);
  background: rgba(255, 255, 255, .75); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
  transition: box-shadow .2s;
}
.ac-mini a:hover { box-shadow: inset 0 0 0 1.5px var(--ac-c); }
.ac-mini b { font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; color: var(--ac-ink); }
.ac-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 760px) {
  .ac-summary { flex-direction: column; align-items: flex-start; gap: 28px; padding: 28px 20px; }
}

/* Categories */
.ac-cats { display: grid; gap: 20px; margin-top: 20px; }
.ac-cat {
  background: var(--surface); border-radius: var(--radius); padding: 32px; scroll-margin-top: 100px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 20px 50px -30px rgba(16, 24, 40, .22);
}
.ac-cat-head { display: flex; align-items: center; gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.ac-cat-head h2 { font-size: 2.1rem; margin: 0 0 4px; }
.ac-cat-head p { margin: 0; color: var(--muted); font-size: .95rem; }
.ac-counts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px !important; font-size: .84rem !important; font-weight: 500; }
.ac-counts .ac-pass { color: var(--ac-good-ink); }
.ac-counts .ac-warn { color: var(--ac-mid-ink); }
.ac-counts .ac-fail { color: var(--ac-low-ink); }
@media (max-width: 600px) { .ac-cat { padding: 24px 18px; } .ac-cat-head { gap: 16px; } .ac-cat-head h2 { font-size: 1.7rem; } }

.ac-list { list-style: none; margin: 0; padding: 0; }
.ac-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.ac-item:last-child { border-bottom: none; padding-bottom: 0; }
.ac-icon {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff;
}
.ac-pass .ac-icon { background: var(--ac-good); }
.ac-warn .ac-icon { background: var(--ac-mid); }
.ac-fail .ac-icon { background: var(--ac-low); }
.ac-body { flex: 1; min-width: 0; }
.ac-row { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 20px; flex-wrap: wrap; }
.ac-row b { font-weight: 600; }
.ac-detail { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; text-align: right; }
.ac-fix { margin: 8px 0 0; font-size: .93rem; color: var(--text-2); max-width: 70ch; }
.ac-bots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ac-bots span { font-size: .76rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.ac-bots .ok { color: var(--ac-good-ink); background: rgba(47, 179, 80, .1); }
.ac-bots .no { color: var(--ac-low-ink); background: rgba(255, 59, 48, .1); }
@media (max-width: 600px) { .ac-detail { text-align: left; } }

.ac-note { color: var(--muted); font-size: .88rem; max-width: 80ch; margin: 28px 0 0; }

/* Explainer cards */
.ac-explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .ac-explain { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .ac-ring-fg { transition: none; }
  .ac-spinner { animation-duration: 2s; }
}

/* Privacy note: sits right under the input, aligned with its text */
.ac-privacy {
  display: flex; align-items: flex-start; gap: 10px; max-width: 620px;
  margin: 16px 0 0; padding: 0 18px; font-size: .84rem; line-height: 1.45; color: var(--muted);
}
.ac-privacy svg {
  flex-shrink: 0; width: 24px; height: 24px; padding: 5px; margin-top: -3px; border-radius: 50%;
  color: var(--text); background: rgba(255, 255, 255, .8); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .07), 0 4px 12px -6px rgba(16, 24, 40, .25);
}
.ac-privacy a { color: var(--text); font-weight: 500; white-space: nowrap; }
.ac-privacy a::after { content: " ›"; }
.ac-privacy a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ac-privacy .ac-de { color: var(--faint); }
@media (max-width: 560px) { .ac-privacy { padding: 0 6px; } }

/* Summary: potential */
.ac-potential { margin: -8px 0 22px; font-size: .98rem; color: var(--text-2); max-width: 44ch; }
.ac-potential b { font-weight: 700; color: var(--text); }
.ac-potential .ac-up { background: var(--volt); color: var(--volt-ink); padding: 0 6px; border-radius: 6px; }

/* Shared: tick list, small category tag */
.ac-ticks { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; }
.ac-ticks li { position: relative; padding-left: 30px; color: var(--text-2); font-weight: 500; }
.ac-ticks li::before {
  content: ""; position: absolute; left: 0; top: .12em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.4l2.6 2.6L14 7.4' fill='none' stroke='%230b0d05' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.ac-tag { display: inline-block; vertical-align: 2px; margin-left: 6px; padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 600; color: var(--muted); background: var(--bg-2); }

/* Biggest levers */
.ac-levers { margin-top: 20px; padding: 36px 40px; background: var(--surface); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 20px 50px -30px rgba(16, 24, 40, .22); }
.ac-levers h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 8px; }
.ac-levers ol { list-style: none; margin: 0; padding: 0; }
.ac-levers li { display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.ac-levers li:last-child { border-bottom: 0; padding-bottom: 0; }
.ac-lever-n { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; background: var(--text); color: #fff; }
.ac-gain { font-weight: 700; font-size: .95rem; color: var(--ac-good-ink); white-space: nowrap; }
@media (max-width: 600px) { .ac-levers { padding: 26px 18px; } }

/* PDF report request */
.ac-report { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: center; margin-top: 20px; padding: 44px; scroll-margin-top: 100px; overflow: hidden; }
.ac-report h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); margin: 0; max-width: 18ch; }
.ac-report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ac-report-grid input {
  min-width: 0; min-height: 50px; padding: 0 20px; border: 0; outline: 0; border-radius: 999px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 10px 26px -18px rgba(16, 24, 40, .3); transition: box-shadow .2s;
}
.ac-report-grid input::placeholder { color: var(--faint); }
.ac-report-grid input:focus { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 4px rgba(79, 107, 255, .18); }
.ac-report-grid .btn:disabled { opacity: .6; cursor: wait; }
@media (max-width: 480px) { .ac-report-grid { grid-template-columns: 1fr; } }
.ac-report-legal { margin: 14px 0 0 6px; font-size: .8rem; line-height: 1.45; color: var(--muted); max-width: 52ch; }
.ac-report-legal a { color: var(--text); font-weight: 500; }
.ac-report-legal a::after { content: " ›"; }
.ac-report-status:empty { display: none; }
.ac-report-status { margin: 14px 0 0 6px; font-size: .92rem; color: var(--muted); }
.ac-report-status.is-error { color: var(--ac-low-ink); }
.ac-report-status.is-ok { color: var(--text-2); padding: 14px 16px; margin-left: 0; border-radius: 16px; background: rgba(47, 179, 80, .1); }
.ac-report-form.is-done .ac-report-grid, .ac-report-form.is-done .ac-report-legal { display: none; }
@media (max-width: 860px) { .ac-report { grid-template-columns: 1fr; padding: 30px 20px; } .ac-report-preview { display: none; } }

/* Report preview: two tilted A4 sheets */
.ac-report-preview { position: relative; height: 340px; perspective: 1200px; }
.ac-page {
  position: absolute; left: 50%; top: 50%; width: 220px; height: 311px; padding: 22px 20px; border-radius: 10px; background: #fff;
  transform: translate(-50%, -50%) rotate(4deg); box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 30px 60px -24px rgba(16, 24, 40, .35);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; transition: transform .6s var(--ease);
}
.ac-page-back { transform: translate(-44%, -52%) rotate(-5deg); background: #fafafa; }
.ac-report:hover .ac-page:not(.ac-page-back) { transform: translate(-50%, -52%) rotate(2deg); }
.ac-page-logo { width: 46px; height: 18px; fill: var(--text); }
.ac-page-host { font-weight: 700; font-size: .95rem; letter-spacing: -.02em; margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: linear-gradient(transparent 58%, var(--volt) 58%, var(--volt) 92%, transparent 92%); }
.ac-page .ac-ring { margin: 4px 0 6px; }
.ac-page .ac-ring svg { width: 84px; height: 84px; }
.ac-page .ac-ring-num b { font-size: 1.5rem; }
.ac-page .ac-ring-num span { font-size: .55rem; margin-top: 1px; }
.ac-page > i { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--bg-2); }
.ac-page-cats { display: flex; gap: 6px; margin-top: auto; width: 100%; }
.ac-page-cats span { flex: 1; padding: 8px 4px; border-radius: 8px; background: var(--bg-2); text-align: center; font-size: .6rem; font-weight: 600; color: var(--muted); }
.ac-page-cats b { display: block; font-size: 1rem; color: var(--ac-ink); }

/* What the quick test can't see */
.ac-more { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 64px; }
.ac-more h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); margin: 0 0 16px; max-width: 18ch; }
.ac-more-copy > p { color: var(--muted); font-size: 1.08rem; max-width: 52ch; margin: 0; }
.ac-more-copy .ac-more-note { margin: 14px 0 0; font-size: .85rem; }
.ac-chat { padding: 22px; }
.ac-chat-top { display: flex; align-items: center; gap: 7px; padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.ac-chat-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(0, 0, 0, .1); }
.ac-chat-top span { margin-left: auto; font-size: .76rem; font-weight: 600; color: var(--muted); }
.ac-chat-q { margin: 0 0 0 auto; width: fit-content; max-width: 85%; padding: 10px 16px; border-radius: 20px 20px 6px 20px; background: var(--text); color: #fff; font-size: .95rem; }
.ac-chat-a { display: flex; gap: 12px; margin-top: 18px; }
.ac-chat-a > div { flex: 1; display: grid; gap: 9px; padding-top: 6px; filter: blur(3px); }
.ac-chat-a i { display: block; height: 9px; border-radius: 5px; background: linear-gradient(90deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .07)); }
.ac-chat-lock {
  display: table; margin: -44px auto 4px; position: relative; padding: 8px 16px 8px 34px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.6' fill='%231d1d1f'/%3E%3Cpath d='M8.2 10.5V8a3.8 3.8 0 0 1 7.6 0v2.5' fill='none' stroke='%231d1d1f' stroke-width='2'/%3E%3C/svg%3E") 12px center / 15px no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06), 0 10px 24px -12px rgba(16, 24, 40, .35);
}
@media (max-width: 860px) { .ac-more { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; } }

/* Fixes kept for the personal report */
.ac-locked a {
  display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 500; color: var(--muted);
}
.ac-locked a::before {
  content: ""; width: 13px; height: 13px; flex-shrink: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='5' y='10.5' width='14' height='10' rx='2.6' fill='%236e6e73'/%3E%3Cpath d='M8.2 10.5V8a3.8 3.8 0 0 1 7.6 0v2.5' fill='none' stroke='%236e6e73' stroke-width='2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ac-locked a:hover { color: var(--text); }
