/* ==========================================================================
   „Sprawdź, czy Twoje raportowanie działa” – pojedynczy kafelek w stylu
   kart z sekcji „Główne funkcje” (bez przyklejania), z animacją audytu.
   ========================================================================== */
.at-section { padding-top: 0; padding-bottom: 100px; }
.stack-card.at-card { position: relative; top: auto; transform: none; }
.at-visual { background: radial-gradient(circle at 20% 85%, #bfe6cd 0%, transparent 55%), radial-gradient(circle at 90% 10%, #fbe7c6 0%, transparent 45%), linear-gradient(160deg, #eef7f0, #e1efe6); }

/* Formularz */
.at-form { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; max-width: 480px; }
.at-form label { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border: 1px solid #d9e4dd; border-radius: 999px; background: #ffffff; color: #5f6b66; transition: border-color .2s, box-shadow .2s; }
.at-form label:focus-within { border-color: #0c9256; box-shadow: 0 0 0 4px rgba(12, 146, 86, .12); }
.at-form svg { width: 18px; height: 18px; flex: none; }
.at-form input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-family: 'Inter', 'Inter Fallback', Arial, sans-serif; font-size: 15px; color: #101c19; }
.at-form .stack-button { margin-top: 0; border: 0; cursor: pointer; font-family: 'Inter', 'Inter Fallback', Arial, sans-serif; }
.at-points { margin: 14px 0 0; font-family: 'Inter', 'Inter Fallback', Arial, sans-serif; font-size: 13px; color: #6b7671; }

/* Makieta audytu */
.at { padding: 16px; }
.at-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 5px 0 12px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--muted); }
.at-search > svg { width: 15px; height: 15px; flex: none; }
.at-q { font-size: 13px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.at-caret { width: 1.5px; height: 15px; background: var(--g-600); opacity: 0; }
.at.is-typing .at-caret { opacity: 1; animation: at-blink .8s steps(1) infinite; }
@keyframes at-blink { 50% { opacity: 0; } }
.at-go { margin-left: auto; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #ffffff; font-size: 11px; font-weight: 600; transition: background .2s, transform .2s; }
.at.is-press .at-go { background: var(--g-600); transform: scale(.94); }

.at-head { margin-bottom: 10px; }
.at-progress { height: 4px; border-radius: 4px; background: var(--g-50); overflow: hidden; }
.at-progress span { display: block; height: 100%; width: var(--p, 100%); background: var(--g-600); border-radius: 4px; transition: width .35s ease; }

.at-main { display: grid; grid-template-columns: minmax(0, 1fr) 96px; gap: 12px; align-items: center; margin-top: 8px; }
.at-tests { margin: 0; padding: 0; list-style: none; }
.at-tests li { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); transition: opacity .3s; }
.at-tests li:last-child { border-bottom: 0; }
.at-tests li span { display: block; color: var(--muted); font-size: 10.5px; }
.at-dot { position: relative; width: 18px; height: 18px; border-radius: 50%; background: var(--g-600); transition: background .25s; }
.at-dot::after { content: ""; position: absolute; left: 6px; top: 3.5px; width: 4px; height: 8px; border: solid #ffffff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.at-tests li[data-at-warn] .at-dot { background: var(--yellow); }
.at-tests li[data-at-warn] .at-dot::after { content: "!"; left: 0; top: 0; width: 18px; height: 18px; border: 0; transform: none; color: #ffffff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
.at-res { font-style: normal; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--g-100); color: var(--g-700); transition: opacity .25s; }
.at-tests li[data-at-warn] .at-res { background: var(--warn-bg); color: var(--warn); }

/* Stan „w trakcie” */
.at-tests li.is-wait { opacity: .45; }
.at-tests li.is-wait .at-dot { background: #e4ebe7; }
.at-tests li.is-wait .at-dot::after { opacity: 0; }
.at-tests li.is-wait .at-res { opacity: 0; }
.at-tests li.is-run .at-dot { background: transparent; border: 2px solid var(--g-300); border-top-color: var(--g-600); animation: at-spin .7s linear infinite; box-sizing: border-box; }
.at-tests li.is-run .at-dot::after { opacity: 0; }
@keyframes at-spin { to { transform: rotate(360deg); } }
.at-tests li.is-pop { animation: at-pop .45s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes at-pop { 0% { transform: translateX(-4px); } 100% { transform: none; } }

.at-score { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.at-score svg { width: 84px; height: 84px; transform: rotate(-90deg); }
.at-ring-bg { fill: none; stroke: var(--g-50); stroke-width: 4; }
.at-ring { fill: none; stroke: var(--yellow); stroke-width: 4; stroke-linecap: round; stroke-dasharray: var(--r, 90) 100; transition: stroke-dasharray .9s cubic-bezier(.22, 1, .36, 1); }
.at-score b { position: absolute; top: 28px; left: 0; right: 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.at-score small { color: var(--muted); font-size: 10.5px; }

.sv-pill.is-busy { background: var(--warn-bg); color: var(--warn); }

@media (max-width: 900px) {
    .at-section { padding-bottom: 80px; }
}
@media (max-width: 640px) {
    .at-section { padding: 0 16px 60px; }
    .at-main { grid-template-columns: minmax(0, 1fr); }
    .at-score { flex-direction: row; justify-content: flex-start; gap: 12px; padding-top: 6px; }
    .at-score svg { width: 56px; height: 56px; }
    .at-score b { position: absolute; top: 18px; left: 0; width: 56px; font-size: 13px; }
    .at-form .stack-button { width: 100%; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
    .at-ring, .at-progress span, .at-tests li { transition: none; animation: none; }
}
.at-tests li.is-run .at-res { opacity: 0; }
.at-ring { transition: stroke-dasharray .9s cubic-bezier(.22, 1, .36, 1), opacity .2s; }
