/* Workhorse Local · free Google profile audit CTAs
   Add after styles.css. Uses only the round-3 tokens in :root. */

/* ---------- audit band (homepage, service pages) ---------- */
.audit .split{align-items:center}
.audit .copy h2{max-width:11em}
.audit .copy .aside{font-size:1rem;color:var(--ink-3)}
.audit-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 28px;margin-top:2em}
.audit-promise{list-style:none;padding:0;margin:1.6em 0 0;display:flex;flex-wrap:wrap;gap:8px 22px;font-size:.92rem;font-weight:600;color:var(--fg-2)}
.audit-promise li{display:flex;align-items:center;gap:10px}
.audit-promise li::before{content:"";width:8px;height:8px;background:var(--accent);flex:none}
@media (max-width:820px){
  .audit .split{grid-template-columns:minmax(0,1fr)}
  .audit .report{order:2}
}

/* ---------- the sample report card ---------- */
.report{margin:0;background:var(--card);color:var(--ink);border-radius:28px;padding:clamp(18px,2.6vw,30px);box-shadow:0 0 0 1px var(--rule-2),var(--sh-card);font-size:.92rem;line-height:1.4;--fg:var(--ink);--fg-2:var(--ink-2)}
.theme-dark .report{box-shadow:0 30px 60px -20px rgba(0,0,0,.7),0 2px 6px rgba(0,0,0,.35)}
.rp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding-bottom:16px;border-bottom:1px solid var(--rule-2)}
.rp-kicker{display:block;font:800 .68rem/1 var(--display);font-stretch:112%;letter-spacing:.12em;text-transform:uppercase;color:var(--red);margin-bottom:8px}
.rp-head b{display:block;font:800 1.2rem/1.15 var(--display);font-stretch:108%}
.rp-sub{display:block;color:var(--ink-3);font-size:.84rem;margin-top:4px}
.rp-top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:clamp(16px,2.4vw,28px);align-items:center;padding:20px 0}
.rp-top.solo{grid-template-columns:minmax(0,1fr)}

/* score ring */
.rp-score{display:grid;justify-items:center;gap:8px;width:132px}
.rp-ring{position:relative;width:120px;height:120px}
.rp-ring svg{width:100%;height:100%;transform:rotate(-90deg)}
.rp-ring circle{fill:none;stroke-width:9}
.rp-track{stroke:var(--rule-2)}
.rp-arc{stroke:var(--red);stroke-linecap:round;stroke-dasharray:314.16;stroke-dashoffset:calc(314.16 * (1 - var(--score) / 100))}
.rp-num{position:absolute;inset:0;display:grid;place-content:center;text-align:center}
.rp-num b{font:800 2.5rem/1 var(--display);font-stretch:112%;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.rp-num small{display:block;font-size:.75rem;color:var(--ink-3);margin-top:2px}
.rp-label{font-weight:700;font-size:.84rem;text-align:center}
.rp-label span{display:block;font-weight:500;color:var(--ink-3)}

/* rank map: a night tile with the real NWA contours behind a 7 x 7 grid */
.rp-map{position:relative;overflow:hidden;background:var(--night);border-radius:18px;padding:14px;color:var(--night-ink)}
.rp-map>img{position:absolute;inset:-10%;width:120%;height:120%;object-fit:cover;opacity:.9;pointer-events:none}
.rp-grid{position:relative;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:clamp(4px,.7vw,7px);max-width:300px;margin:0 auto}
.rp-grid i{display:grid;place-items:center;aspect-ratio:1;border-radius:50%;font:800 clamp(.62rem,1vw,.74rem)/1 var(--display);font-style:normal;font-variant-numeric:tabular-nums}
.rp-grid .g1{background:var(--green-ok);color:#fff}
.rp-grid .g2{background:var(--night-accent);color:var(--night)}
.rp-grid .g3{background:var(--night-2);color:var(--night-ink-2);box-shadow:inset 0 0 0 1px var(--night-rule)}
.rp-grid .shop{position:relative;background:var(--green-ok);color:#fff;box-shadow:0 0 0 3px var(--night),0 0 0 5px var(--night-ink)}
.rp-legend{position:relative;display:flex;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin:12px 0 0;padding:0;list-style:none;font-size:.72rem;color:var(--night-ink-2)}
.rp-legend li{display:flex;align-items:center;gap:6px}
.rp-legend i{width:9px;height:9px;border-radius:50%}
.rp-legend .g1{background:var(--green-ok)} .rp-legend .g2{background:var(--night-accent)} .rp-legend .g3{background:var(--night-2);box-shadow:inset 0 0 0 1px #4a554f}

/* review comparison */
.rp-bars{list-style:none;margin:0;padding:20px 0 6px;display:grid;gap:14px}
.rp-bars li{display:grid;grid-template-columns:7.5em minmax(0,1fr) 3.2em;align-items:center;gap:12px}
.rp-bars span{font-weight:600;font-size:.86rem;color:var(--ink-2)}
.rp-bars .you span{color:var(--ink);font-weight:800}
.rp-bar{height:14px;border-radius:999px;background:var(--paper-2);overflow:hidden}
.rp-bar i{display:block;height:100%;width:var(--w);border-radius:inherit;background:var(--ink)}
.rp-bars .you .rp-bar i{background:var(--red);min-width:8px}
.rp-bars b{font:800 1rem/1 var(--display);font-stretch:108%;text-align:right;font-variant-numeric:tabular-nums}
.rp-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:10px 0 18px}
.rp-stats div{background:var(--paper);border-radius:14px;padding:12px 14px}
.rp-stats small{display:block;color:var(--ink-3);font-size:.76rem;margin-bottom:4px}
.rp-stats b{font:800 1.05rem/1.15 var(--display);font-stretch:108%}
.rp-stats .bad b{color:var(--red-deep)}

/* fix list */
.rp-fixes{list-style:none;margin:0;padding:16px 0 0;border-top:1px solid var(--rule-2);display:grid;gap:10px}
.rp-fixes li{display:grid;grid-template-columns:20px minmax(0,1fr);gap:10px;align-items:start;color:var(--ink-2)}
.rp-fixes li::before{content:"";width:20px;height:20px;border-radius:50%;margin-top:1px;background:var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M7 7l6 6M13 7l-6 6' stroke='%238F3320' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat}
.rp-fixes li.ok::before{background:#DCEBE1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.3 2.7 2.7L14 7.5' fill='none' stroke='%232F7A4E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center no-repeat}
.rp-fixes b{color:var(--ink)}
.rp-cap{margin-top:16px;font-size:.78rem;color:var(--ink-3)}

@media (max-width:480px){
  .rp-top{grid-template-columns:minmax(0,1fr)}
  .rp-score{grid-template-columns:auto minmax(0,1fr);justify-items:start;align-items:center;width:auto;gap:16px}
  .rp-ring{width:96px;height:96px}
  .rp-num b{font-size:2rem}
  .rp-label{text-align:left}
  .rp-bars li{grid-template-columns:6.2em minmax(0,1fr) 2.6em;gap:10px}
}

/* ---------- motion: plays once when the card scrolls in ---------- */
@media (prefers-reduced-motion:no-preference){
  html.motion .report:not(.play) .rp-grid i{opacity:0;transform:scale(.4)}
  html.motion .rp-grid i{transition:opacity .45s ease,transform .6s cubic-bezier(.3,1.5,.5,1);transition-delay:calc(var(--d,0) * 140ms + 250ms)}
  html.motion .rp-grid .shop{transition-delay:150ms}
  html.motion .report:not(.play) .rp-arc{stroke-dashoffset:314.16}
  html.motion .rp-arc{transition:stroke-dashoffset 1.6s var(--ease) .3s}
  html.motion .report:not(.play) .rp-bar i{width:0}
  html.motion .rp-bar i{transition:width 1.2s var(--ease);transition-delay:calc(var(--i,0) * 140ms + 300ms)}
  html.motion .report:not(.play) .rp-fixes li{opacity:0;transform:translateX(-12px)}
  html.motion .rp-fixes li{transition:opacity .5s ease,transform .6s var(--ease);transition-delay:calc(var(--i,0) * 220ms + 1.1s)}
  html.motion .rp-grid .shop::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1.5px solid var(--night-accent);opacity:0}
  html.motion .report.play .rp-grid .shop::after{animation:rp-ping 2.4s ease-out .4s 2}
  @keyframes rp-ping{0%{opacity:.9;transform:scale(1)}100%{opacity:0;transform:scale(2.6)}}
}

/* ---------- landing page: /free-audit ---------- */
.audit-hero .page-hero-body{align-items:start}
.audit-hero h1{max-width:10.5em}
.audit-hero .audit-promise{margin-top:0}
.audit-hero .form-card{color:var(--ink);--fg:var(--ink);--fg-2:var(--ink-2);--line:var(--rule);--accent:var(--red)}
.form-card .form-h{font:800 clamp(1.4rem,2.2vw,1.75rem)/1.1 var(--display);font-stretch:116%;letter-spacing:-.01em;margin:0 0 .35em}
.form-card .form-sub{margin:0 0 24px;color:var(--ink-2)}
.form .hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.inside .split{align-items:start}
.inside-list{list-style:none;margin:0;padding:0;display:grid;gap:0;counter-reset:n}
.inside-list li{counter-increment:n;display:grid;grid-template-columns:44px minmax(0,1fr);gap:4px 16px;padding:22px 0;border-top:1px solid var(--rule)}
.inside-list li:last-child{border-bottom:1px solid var(--rule)}
.inside-list li::before{content:counter(n);grid-row:span 2;font:800 1.9rem/1 var(--display);font-stretch:118%;color:var(--red)}
.inside-list h3{font-size:1.25rem!important;font-stretch:112%;margin:0}
.inside-list p{margin:0;color:var(--ink-2)}
.why-free .copy p:last-child{color:var(--fg)}
.close-lite .actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px}
.close-lite .link{font-size:1.15rem}
@media (max-width:820px){
  .audit-hero .page-hero-body{grid-template-columns:minmax(0,1fr)}
  .inside .split,.why-free .split{grid-template-columns:minmax(0,1fr)}
}
@media (prefers-reduced-motion:no-preference){
  html.motion .inside-list li:not(.in){opacity:0;transform:translateY(18px)}
  html.motion .inside-list li{transition:opacity .7s var(--ease),transform .7s var(--ease);transition-delay:calc(var(--i,0) * 90ms)}
}

/* QA: keep the decorative terrain from widening the page on phones */
.audit-hero,.why-free{overflow-x:clip}
