/* ==========================================================
   Webbily – Free Website Audit (/website-audit/)
   Uses the tokens from style.css (--dark, --lime, --orange …)
   ========================================================== */
.audit-page { --good: #12a046; --avg: #f08a00; --poor: #e0362c; --na: #8a8f7d; }

/* Hero */
.au-hero { position: relative; overflow: hidden; padding: clamp(60px, 9vw, 120px) 0 clamp(70px, 9vw, 110px); }
.au-hero::before, .au-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px); }
.au-hero::before { width: 520px; height: 520px; left: -200px; top: -220px; background: radial-gradient(circle, rgba(255,81,42,.45), transparent 65%); }
.au-hero::after { width: 620px; height: 620px; right: -240px; bottom: -320px; background: radial-gradient(circle, rgba(202,252,1,.28), transparent 65%); }
.au-hero-inner { position: relative; z-index: 1; text-align: center; max-width: 920px; }
.au-crumbs { justify-content: center; margin-bottom: 22px; font-size: .92rem; }
.au-hero .tag { margin-bottom: 18px; }
.au-hero h1 { font-size: clamp(2.2rem, 5.6vw, 4.2rem); line-height: 1.06; margin-bottom: 18px; }
.au-hl { color: var(--lime); }
.au-sub { font-size: clamp(1.08rem, 2vw, 1.3rem); color: #fff; max-width: 720px; margin: 0 auto 10px; }
.au-desc { color: var(--muted-light); max-width: 680px; margin: 0 auto 34px; }
.au-form { max-width: 760px; margin: 0 auto; }
.au-input { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border-radius: 999px; background: #fff; box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 6px rgba(202,252,1,.12); }
.au-input > svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: var(--muted); stroke-width: 1.8; }
.au-input input[type="text"] { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1.05rem; color: var(--dark); background: transparent; padding: 12px 4px; }
.au-input .btn { flex-shrink: 0; white-space: nowrap; }
.au-input:focus-within { box-shadow: 0 30px 70px -30px rgba(0,0,0,.7), 0 0 0 4px var(--lime); }
.au-msg { min-height: 1.4em; margin: 14px 0 0; font-weight: 600; color: var(--muted-light); }
.au-msg.err { color: #ff8a73; }
.au-trust { display: flex; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 12px; color: var(--muted-light); font-size: .95rem; }
.au-trust a { color: var(--lime); font-weight: 600; }

/* Progress */
.au-run { padding-top: 60px; scroll-margin-top: 90px; }
.au-progress { max-width: 820px; margin: 0 auto; padding: 32px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.au-progress-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin-bottom: 18px; }
.au-progress-head h2 { font-size: clamp(1.2rem, 2.6vw, 1.7rem); margin: 4px 0 0; word-break: break-all; }
.au-kicker { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.au-timer { font-family: var(--font-num); font-size: 1.6rem; color: var(--muted); }
.au-bar { height: 8px; border-radius: 99px; background: #e2e4dc; overflow: hidden; margin-bottom: 22px; }
.au-bar i { display: block; height: 100%; width: 6%; border-radius: 99px; background: linear-gradient(90deg, var(--lime), #8fc400); transition: width .8s var(--ease); position: relative; overflow: hidden; }
.au-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); animation: auShine 1.4s linear infinite; }
@keyframes auShine { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.au-steps { list-style: none; display: grid; gap: 10px; margin-bottom: 16px; }
.au-steps li { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.au-steps b { display: block; font-size: .98rem; }
.au-steps small { color: var(--muted); font-size: .82rem; }
.au-steps em { font-style: normal; font-weight: 700; font-size: .85rem; color: var(--muted); }
.au-dot { width: 22px; height: 22px; border-radius: 50%; border: 3px solid #d6d9cd; }
.au-steps li.is-running .au-dot { border-color: var(--lime) var(--lime) #d6d9cd #d6d9cd; animation: auSpin .8s linear infinite; }
.au-steps li.is-running em { color: var(--dark); }
.au-steps li.is-done .au-dot { border-color: var(--good); background: var(--good) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.au-steps li.is-done em { color: var(--good); }
.au-steps li.is-error .au-dot { border-color: var(--poor); background: var(--poor); }
.au-steps li.is-error em { color: var(--poor); }
@keyframes auSpin { to { transform: rotate(360deg); } }
.au-note { color: var(--muted); font-size: .9rem; margin: 0; }

/* Report */
#auditReport { display: grid; gap: 22px; }
.au-card { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); min-width: 0; }
.au-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; margin-bottom: 18px; }
.au-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-soft); font-size: 1.1rem; flex-shrink: 0; }
.au-muted { color: var(--muted); margin-top: -8px; }
.au-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--dark); color: #fff; border-color: var(--dark); position: relative; overflow: hidden; }
.au-head::after { content: ""; position: absolute; right: -120px; top: -160px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(circle, rgba(202,252,1,.22), transparent 65%); pointer-events: none; }
.au-head-main { position: relative; z-index: 1; min-width: 0; }
.au-head h2 { font-size: clamp(1.4rem, 3vw, 2.1rem); margin: 6px 0 14px; word-break: break-all; }
.au-head h2 a { color: #fff; }
.au-head h2 a:hover { color: var(--lime); }
.au-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 0; }
.au-meta div { display: flex; gap: 8px; }
.au-meta dt { color: var(--muted-light); }
.au-meta dd { margin: 0; font-weight: 700; }
.au-head-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; position: relative; z-index: 1; }
.au-head .btn-ghost { color: #fff; }
.au-textbtn { background: none; border: 0; color: var(--lime); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; padding: 8px 6px; }
.au-two { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.au-gauges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.au-gauge { position: relative; display: grid; justify-items: center; text-align: center; }
.au-gauge svg { width: 100%; max-width: 110px; }
.au-g-track { fill: none; stroke: #eceee6; stroke-width: 8; }
.au-g-val { fill: none; stroke-width: 8; stroke-linecap: round; transition: stroke-dasharray 1.2s var(--ease); }
.au-gauge strong { position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 1; max-width: 110px; margin: 0 auto; display: grid; place-items: center; font-family: var(--font-num); font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.au-gauge span { font-size: .84rem; font-weight: 600; margin-top: 6px; line-height: 1.25; }
.au-gauge.au-good .au-g-val { stroke: var(--good); } .au-gauge.au-good strong { color: var(--good); }
.au-gauge.au-avg .au-g-val { stroke: var(--avg); } .au-gauge.au-avg strong { color: var(--avg); }
.au-gauge.au-poor .au-g-val { stroke: var(--poor); } .au-gauge.au-poor strong { color: var(--poor); }
.au-gauge.au-na strong { color: var(--na); }
.au-disclaimer { margin: -6px 4px 0; color: var(--muted); font-size: .88rem; }
.au-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-bottom: 6px; font-weight: 600; color: var(--dark); }
.au-legend > span { white-space: nowrap; }
.au-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.au-legend i.au-good { background: var(--good); } .au-legend i.au-avg { background: var(--avg); } .au-legend i.au-poor { background: var(--poor); }
.au-part-error { padding: 18px; border-radius: 14px; background: #fff3f1; border: 1px solid #ffd2c9; }
.au-part-error b { color: var(--poor); }
.au-part-error p { margin: 6px 0 0; color: var(--dark); }
.au-error-card { text-align: center; }

/* Vitals */
.au-card-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.au-card-top h3 { margin: 0; }
.au-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--bg-soft); }
.au-tab { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.au-tab[aria-selected="true"] { background: var(--dark); color: var(--lime); }
.au-vitals h4 { font-size: 1.02rem; margin: 22px 0 12px; }
.au-vitals h4 small { display: block; font-family: var(--font-body); font-weight: 500; color: var(--muted); font-size: .82rem; margin-top: 3px; }
.au-field h4 { margin-top: 0; }
.au-verdict { display: inline-block; padding: 8px 14px; border-radius: 10px; font-weight: 700; margin-bottom: 14px; }
.au-verdict.au-good { background: #e6f7ec; color: var(--good); } .au-verdict.au-poor { background: #fdecea; color: var(--poor); } .au-verdict.au-na { background: var(--bg-soft); color: var(--muted); }
.au-nofield { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); color: var(--muted); }
.au-nofield b { color: var(--dark); }
.au-metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.au-metric { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); border-left: 5px solid var(--na); display: grid; gap: 2px; }
.au-metric span { font-size: .84rem; color: var(--muted); }
.au-metric strong { font-family: var(--font-num); font-size: 1.5rem; }
.au-metric em { font-style: normal; font-size: .8rem; font-weight: 700; }
.au-metric.au-good { border-left-color: var(--good); } .au-metric.au-good em { color: var(--good); }
.au-metric.au-avg { border-left-color: var(--avg); } .au-metric.au-avg em { color: var(--avg); }
.au-metric.au-poor { border-left-color: var(--poor); } .au-metric.au-poor em { color: var(--poor); }
.au-metric.au-na em { color: var(--na); }

/* Lists */
.au-list { list-style: none; display: grid; gap: 10px; }
.au-list li { padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }
.au-list p { margin: 6px 0 0; color: var(--muted); font-size: .92rem; }
.au-li-head { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.au-pill { flex-shrink: 0; font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--bg-soft); }
.au-pill.au-avg { background: #fff1de; color: #b06200; }
.au-pill.au-na { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.au-group { border-top: 1px solid var(--line); padding: 12px 0; }
.au-group summary { cursor: pointer; font-weight: 700; display: flex; align-items: center; gap: 10px; list-style: none; padding: 4px 0 10px; }
.au-group summary::-webkit-details-marker { display: none; }
.au-group summary::before { content: "▸"; color: var(--orange); transition: transform .2s; }
.au-group[open] summary::before { transform: rotate(90deg); }
.au-count { font-size: .78rem; padding: 2px 9px; border-radius: 99px; background: var(--dark); color: var(--lime); }
.au-count.au-good { background: #e6f7ec; color: var(--good); }

/* SEO findings */
.au-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 16px; }
.au-filter { border: 1.5px solid #d9dbd3; background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .9rem; }
.au-filter.is-on { background: var(--dark); color: #fff; border-color: var(--dark); }
.au-findings { display: grid; gap: 12px; }
.au-finding { padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); border-left: 5px solid var(--na); }
.au-sev-high { border-left-color: var(--poor); } .au-sev-medium { border-left-color: var(--avg); }
.au-sev { font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; color: #fff; background: var(--na); }
.au-sev-high .au-sev { background: var(--poor); } .au-sev-medium .au-sev { background: var(--avg); }
.au-finding .au-li-head { justify-content: flex-start; align-items: center; }
.au-finding dl { display: grid; grid-template-columns: 140px 1fr; gap: 6px 14px; margin: 12px 0 0; font-size: .93rem; }
.au-finding dt { color: var(--muted); font-weight: 600; }
.au-finding dd { margin: 0; overflow-wrap: anywhere; }
.au-urls { display: grid; gap: 2px; }
.au-urls a { color: var(--orange); }
.au-empty { padding: 18px; border-radius: 12px; background: #e6f7ec; color: var(--good); font-weight: 700; }
.au-passed { margin-top: 14px; }
.au-passlist { list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.au-passlist li { padding-left: 24px; position: relative; overflow-wrap: anywhere; }
.au-passlist li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 800; }
.au-passlist span { color: var(--muted); }

/* CTA */
.au-cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: center; padding: clamp(28px, 4vw, 48px); border-radius: var(--radius); position: relative; overflow: hidden; }
.au-cta::before { content: ""; position: absolute; left: -150px; bottom: -200px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(255,81,42,.35), transparent 65%); pointer-events: none; }
.au-cta > * { position: relative; }
.au-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin: 14px 0 12px; }
.au-cta p { color: var(--muted-light); margin: 0; }
.au-cta-actions { display: grid; gap: 12px; justify-items: stretch; }
.au-cta-actions .btn { justify-content: center; }
.au-cta .btn-ghost { color: #fff; }
.au-light { color: var(--lime); text-align: center; }

/* What we check + FAQ */
.au-check-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.au-check { padding: 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s; }
.au-check:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.au-ci { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #fff; font-size: 1.5rem; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.au-check h3 { font-size: 1.15rem; }
.au-check p { color: var(--muted); margin: 0; font-size: .96rem; }
.au-faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 50px; align-items: start; }
.au-faq-grid .lead { color: var(--muted-light); }
.au-link { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.au-faq details { border-bottom: 1px solid #2d3713; padding: 16px 0; }
.au-faq summary { cursor: pointer; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.au-faq summary::-webkit-details-marker { display: none; }
.au-faq summary::after { content: "+"; color: var(--lime); font-size: 1.4rem; line-height: 1; transition: transform .25s; }
.au-faq details[open] summary::after { transform: rotate(45deg); }
.au-faq p { color: var(--muted-light); margin: 10px 0 0; }

/* Inquiry dialog */
.au-dialog { max-width: 760px; }
.au-lead { padding: 22px 32px 32px; }
.au-attached { padding: 14px 16px; border-radius: 14px; background: var(--bg-soft); border-left: 4px solid var(--lime); margin-bottom: 18px; font-size: .92rem; }
.au-attached ul { list-style: none; margin: 6px 0 0; display: grid; gap: 2px; color: var(--muted); overflow-wrap: anywhere; }
.au-lead.is-sent > :not(.form-success) { display: none; }
.au-lead-actions { margin-top: 18px; }

@media (max-width: 1024px) {
  .au-two { grid-template-columns: 1fr; }
  .au-check-grid { grid-template-columns: repeat(2, 1fr); }
  .au-cta, .au-faq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .au-input { flex-wrap: wrap; border-radius: 22px; padding: 10px; }
  .au-input > svg { display: none; }
  .au-input input[type="text"] { flex-basis: 100%; padding: 10px 8px; }
  .au-input .btn { width: 100%; justify-content: center; }
  .au-gauges { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .au-check-grid { grid-template-columns: 1fr; }
  .au-finding dl { grid-template-columns: 1fr; gap: 2px; }
  .au-finding dd { margin-bottom: 8px; }
  .au-progress { padding: 22px 18px; }
  .au-steps li { grid-template-columns: 22px 1fr; }
  .au-steps em { grid-column: 2; }
  .au-head-actions .btn { flex: 1 1 100%; justify-content: center; }
  .au-lead { padding: 16px 18px 24px; }
  .au-dialog .dialog-head { padding: 22px 18px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .au-bar i::after, .au-steps li.is-running .au-dot { animation: none; }
}
