/**
 * Free Audit page (template-audit.php).
 *
 * Loaded only on Pages using that template, from functions.php, after
 * landing.css (which styles the shared header and footer).
 *
 * Taken from the approved "aminowebsites-free-audit" design: its own lime,
 * greys and the Lexend / JetBrains Mono fonts. The design's inline styles
 * are lifted into classes, namespaced `af-` and scoped under `.af-page`.
 * The 3-step form is Contact Form 7 markup (see inc/audit-page.php), so
 * the CF7 classes it prints are styled here too.
 */

/* ---- page fonts + lime, also for the landing header/footer on this page ---- */
.page-template-template-audit{
  --ff:'Lexend',system-ui,sans-serif;
  --mono:'JetBrains Mono',monospace;
  --acid:#D4F53C;
  background:#0B0B0C;
}
.page-template-template-audit .lp-header__phone:hover,
.page-template-template-audit .lp-footer__links a:hover{color:#D4F53C}

.af-page{
  --lime:#D4F53C;--ink:#0B0B0C;--card:#141416;--field:#0F0F11;--line:#2C2C31;
  --edge:#26262A;--band:#0E0E10;--rule:#1C1C20;
  --text:#F4F4F5;--soft:#D4D4D8;--muted:#A1A1AA;--err:#FF9F7A;
  background:var(--ink);color:var(--text);font-family:'Lexend',system-ui,sans-serif;line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
.af-page *,.af-page *::before,.af-page *::after{box-sizing:border-box}
.af-page a{color:var(--text);text-decoration:none}
.af-page a:hover{color:var(--lime)}
.af-page img{max-width:100%;display:block}
.af-page button:focus-visible,.af-page a:focus-visible,.af-page summary:focus-visible,.af-page select:focus-visible{outline:2px solid var(--lime);outline-offset:3px}
.af-page [hidden]{display:none !important}
.af-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.af-wrap{max-width:1160px;margin:0 auto;padding:0 24px}
.af-wrap--narrow{max-width:1000px}
.af-wrap--faq{max-width:760px}
.af-section{padding:104px 0}
.af-wrap.af-section{padding:96px 24px}
.af-section--tight{padding:56px 0 104px}
.af-section--line{border-top:1px solid var(--rule);padding:96px 0}
.af-band{background:var(--band);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}

.af-headline{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;margin-bottom:48px}
.af-eyebrow{font-size:12px;font-weight:600;color:var(--lime);letter-spacing:.12em;text-transform:uppercase}
.af-page .af-h2{margin:0;font-size:clamp(28px,3.4vw,40px);font-weight:600;line-height:1.15;letter-spacing:-.025em;color:var(--text)}
.af-lead{margin:0;font-size:16px;color:var(--muted);max-width:580px;line-height:1.6}

.af-badge{align-self:flex-start;display:inline-flex;gap:8px;align-items:center;border:1px solid #3A4416;background:#151A06;color:var(--lime);font-size:12px;font-weight:500;padding:7px 12px;border-radius:999px}
.af-badge i{width:6px;height:6px;border-radius:999px;background:var(--lime)}

/* ---- hero ---- */
.af-hero{max-width:1160px;margin:0 auto;padding:64px 24px 88px;display:flex;flex-wrap:wrap;gap:48px 56px;align-items:flex-start}
.af-hero__copy{flex:1 1 460px;min-width:0;display:flex;flex-direction:column;gap:24px;padding-top:24px}
.af-page .af-h1{margin:0;font-size:clamp(40px,5.2vw,64px);line-height:1.04;font-weight:700;letter-spacing:-.035em;color:var(--text)}
.af-h1__hl{display:inline-block;background:var(--lime);color:var(--ink);padding:0 14px 6px;border-radius:12px;margin-top:8px}
.af-hero__sub{margin:0;font-size:17px;line-height:1.65;color:var(--muted);max-width:540px}
.af-hero__notes{display:flex;flex-wrap:wrap;gap:10px 22px;margin:0;padding:0;list-style:none;font-size:13px;color:var(--soft)}
.af-hero__notes li{display:flex;gap:7px;align-items:center}
.af-hero__notes svg{color:var(--lime);flex:none}

/* ---- form card ---- */
.af-col{flex:1 1 440px;max-width:520px;min-width:0;display:flex;flex-direction:column;gap:14px}
.af{background:var(--card);border:1px solid var(--edge);border-radius:20px;padding:30px;scroll-margin-top:150px;color:var(--text)}
.af-proof{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;font-size:13px;color:var(--muted)}
.af-proof strong{color:var(--text);font-weight:600}
.af-stars{color:var(--lime);letter-spacing:2px}

.af-head{display:flex;flex-direction:column;gap:6px;margin-bottom:24px}
.af-page .af-title{margin:0;font-size:24px;line-height:1.2;font-weight:600;letter-spacing:-.02em;color:var(--text)}
.af-sub{margin:0 0 14px;font-size:15px;line-height:1.5;color:var(--muted)}
.af-steps{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.af-steps li{display:flex;flex-direction:column;gap:8px}
.af-steps-bar{height:4px;border-radius:999px;background:#2A2A2F;transition:background .25s}
.af-steps-name{font-size:13px;font-weight:500;color:#8A8A93;transition:color .25s}
.af-steps li.is-done .af-steps-bar,.af-steps li.is-current .af-steps-bar{background:var(--lime)}
.af-steps li.is-current .af-steps-name{color:var(--text);font-weight:600}
.af-steps li.is-done .af-steps-name{color:var(--soft)}
.af.is-done .af-head,.af.is-done .af-cf7{display:none}

/* Contact Form 7 wrapper. It also carries .lp-final__form (for the GTM
   lead snippet, see the template); landing.css boxes that, so undo it. */
.af .af-cf7.lp-final__form{margin:0;padding:0;background:none;border:0;border-radius:0;text-align:left}
.af .wpcf7-form{margin:0}
.af .wpcf7-form-control-wrap{display:block;position:relative}
.af .wpcf7-not-valid-tip,.af .wpcf7-response-output,.af .wpcf7-spinner{display:none !important}
.af-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Steps + questions */
.af-step{display:flex;flex-direction:column;gap:26px;outline:none}
.af-q{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:12px}
.af-page .af-qt{padding:0;margin:0;font-size:16px;line-height:1.4;font-weight:600;color:var(--text);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.af-tag{font-size:12px;font-weight:500;color:var(--muted);background:#1F1F23;border-radius:999px;padding:2px 9px}
.af-hint{margin:-2px 0 0;font-size:13px;line-height:1.45;color:var(--muted);display:flex;gap:7px;align-items:center}
.af-hint--lock::before{content:"";flex:0 0 14px;height:14px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat}

/* Choice cards: CF7 radio lists (.wpcf7-list-item > label > input + text) */
.af .wpcf7-radio{display:grid;gap:10px}
.af-choices.c1 .wpcf7-radio{grid-template-columns:1fr}
.af-choices.c2 .wpcf7-radio{grid-template-columns:repeat(2,minmax(0,1fr))}
.af-choices.c3 .wpcf7-radio{grid-template-columns:repeat(3,minmax(0,1fr))}
.af .wpcf7-list-item{display:block;margin:0}
.af .wpcf7-list-item label{position:relative;display:flex;align-items:center;gap:12px;min-height:56px;height:100%;padding:14px 16px;border:1.5px solid var(--line);border-radius:12px;background:var(--field);cursor:pointer;-webkit-tap-highlight-color:transparent;user-select:none;transition:border-color .15s,background-color .15s,transform .1s}
.af .wpcf7-list-item label:hover{border-color:#55595F;background:#131316}
.af .wpcf7-list-item label:active{transform:scale(.99)}
.af .wpcf7-list-item input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.af .wpcf7-list-item label::before{content:"";flex:0 0 20px;width:20px;height:20px;border-radius:999px;border:2px solid #5A5A63;box-shadow:inset 0 0 0 8px transparent;transition:border-color .15s,background-color .15s,box-shadow .15s}
.ch-tx{display:flex;flex-direction:column;gap:2px;min-width:0}
.af .wpcf7-list-item-label{font-size:15px;line-height:1.3;font-weight:500;color:var(--soft)}
.ch-h{font-size:13px;line-height:1.35;color:var(--muted)}
.af .wpcf7-list-item label:has(input:checked){border-color:var(--lime);background:#181D0A}
.af .wpcf7-list-item label:has(input:checked)::before{border-color:var(--lime);background:var(--lime);box-shadow:inset 0 0 0 4px var(--lime),inset 0 0 0 8px var(--ink)}
.af .wpcf7-list-item label:has(input:checked) .wpcf7-list-item-label{color:var(--text);font-weight:600}
.af .wpcf7-list-item label:has(input:focus-visible){outline:2px solid var(--lime);outline-offset:3px}
.af-q.is-invalid .wpcf7-list-item label{border-color:#6A3A2A}

/* Inputs */
.af .inp{width:100%;min-height:54px;margin:0;padding:0 16px;background:var(--field);border:1.5px solid var(--line);border-radius:12px;color:var(--text);font:400 16px 'Lexend',system-ui,sans-serif;outline:none;box-shadow:none;transition:border-color .15s,box-shadow .15s;-webkit-appearance:none;appearance:none}
.af .inp::placeholder{color:#76767F}
.af .inp:hover{border-color:#55595F}
.af .inp:focus{border-color:var(--lime);box-shadow:0 0 0 4px rgba(212,245,60,.16)}
.af .inp[aria-invalid=true]{border-color:var(--err)}
.af .af-ta{min-height:96px;padding:14px 16px;line-height:1.5;resize:vertical}
.af-phone{display:flex;gap:8px}
.af .af-cc{flex:0 0 128px;width:128px;padding:0 34px 0 14px;cursor:pointer;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23A1A1AA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center}
.af .af-cc option{background:var(--card);color:var(--text)}
.af-ferr{margin:0;font-size:14px;line-height:1.4;color:var(--err);display:flex;gap:7px;align-items:flex-start}
.af-ferr::before{content:"!";flex:0 0 18px;height:18px;border-radius:999px;background:var(--err);color:var(--ink);font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;margin-top:1px}

/* Buttons (the CF7 submit is an <input>, hence the input selectors) */
.af-nav{display:flex;gap:10px;align-items:stretch}
.af .af-btn,.af .af-back{min-height:56px;margin:0;border-radius:12px;font:600 16px 'Lexend',system-ui,sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;padding:0 22px;text-decoration:none;-webkit-tap-highlight-color:transparent;transition:filter .15s,border-color .15s,color .15s;-webkit-appearance:none;appearance:none}
.af .af-btn{flex:1;border:0;background:var(--lime);color:var(--ink)}
.af .af-btn:hover{filter:brightness(1.07);color:var(--ink)}
.af .af-btn:disabled,.af .wpcf7-form.submitting .af-btn{opacity:.65;cursor:progress}
.af .af-back{flex:0 0 auto;background:transparent;border:1.5px solid var(--line);color:var(--soft);font-weight:500}
.af .af-back:hover{border-color:var(--lime);color:var(--lime)}
.af .af-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.af .af-btn--next::after,.af .af-back[data-back]::before{content:"";width:18px;height:18px;flex:0 0 18px;background:currentColor}
.af .af-btn--next::after{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.af .af-back[data-back]::before{
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.af-submit-wrap{display:flex;flex-direction:column;gap:14px;padding-top:4px}
.af-fine{margin:0;font-size:13px;color:var(--muted);text-align:center}

/* "Thanks" screens */
.af-done{display:flex;flex-direction:column;gap:16px;outline:none}
.af-tick{width:56px;height:56px;border-radius:999px;background:var(--lime);display:flex;align-items:center;justify-content:center}
.af-tick svg{width:26px;height:26px;fill:none;stroke:var(--ink);stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.af-p{margin:0;font-size:16px;line-height:1.6;color:var(--muted)}
.af-p strong{color:var(--text);font-weight:500}
.af-actions{display:flex;flex-wrap:wrap;gap:10px}
.af-actions>*{flex:1 1 200px}
.af-timeline{list-style:none;margin:4px 0 0;padding:16px 0 0;border-top:1px solid var(--edge);display:flex;flex-direction:column;gap:14px}
.af-timeline li{display:flex;flex-direction:column;gap:2px;font-size:15px;color:var(--muted);line-height:1.5}
.af-timeline strong{color:var(--text);font-weight:600;font-size:14px}

/* ---- stats + client logos ---- */
.af-strip{padding-top:40px;padding-bottom:40px;display:flex;flex-direction:column;gap:28px;align-items:center}
.af-stats{display:flex;flex-wrap:wrap;gap:16px 56px;justify-content:center;align-items:baseline}
.af-stat{display:flex;gap:8px;align-items:baseline}
.af-stat strong{font-size:18px;color:var(--lime);font-weight:600}
.af-stat span{font-size:12px;color:var(--muted)}
.af-logos{display:flex;flex-wrap:wrap;gap:20px 56px;justify-content:center;align-items:center;color:#8E8E97;font-weight:600;font-size:22px;letter-spacing:.06em}
.af-logo-img{height:28px;width:auto}

/* ---- cards (services, work, audit checks, testimonials) ---- */
.af-grid{display:grid;gap:16px}
.af-grid--svc,.af-grid--tst{grid-template-columns:repeat(auto-fit,minmax(320px,1fr))}
.af-grid--work{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:18px}
.af-grid--checks{grid-template-columns:repeat(auto-fit,minmax(240px,1fr))}
.af-card{background:var(--card);border:1px solid var(--edge);border-radius:14px;padding:26px;display:flex;flex-direction:column;gap:14px;transition:border-color .2s}
.af-card:hover{border-color:#3A4416}
.af-card--plain{gap:12px}
.af-card--plain:hover{border-color:var(--edge)}
.af-page .af-card h3{margin:0;font-size:18px;font-weight:600;color:var(--text)}
.af-card p{margin:0;font-size:14px;line-height:1.6;color:var(--muted)}
.af-card__top{display:flex;justify-content:space-between;align-items:center}
.af-card__ico{width:40px;height:40px;border-radius:10px;background:#1D2408;color:var(--lime);display:flex;align-items:center;justify-content:center}
.af-card__num{font:500 11px 'JetBrains Mono',monospace;color:#8A8A93}

/* journey */
.af-journey{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.af-journey__step{border-top:2px solid var(--lime);padding-top:18px;display:flex;flex-direction:column;gap:8px}
.af-journey__num{font:600 12px 'JetBrains Mono',monospace;color:var(--lime)}
.af-journey__step strong{font-size:16px;font-weight:600}
.af-journey__step>span:last-child{font-size:13px;line-height:1.55;color:var(--muted)}

/* comparison */
.af-cmp{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));border:1px solid var(--edge);border-radius:16px;overflow:hidden}
.af-cmp__col{display:flex;flex-direction:column;background:var(--card)}
.af-cmp__col--win{background:#161A0B}
.af-cmp__head{padding:16px 22px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--edge)}
.af-cmp__col--win .af-cmp__head{font-weight:600;color:var(--lime);border-bottom-color:#2E3514}
.af-cmp__row{padding:18px 22px;font-size:14px;line-height:1.5;color:var(--muted);border-bottom:1px solid #1E1E22;display:flex;gap:10px}
.af-cmp__row:last-child{border-bottom:0}
.af-cmp__row span{color:#52525B;flex:none}
.af-cmp__col--win .af-cmp__row{color:var(--text);border-bottom-color:#22280F}
.af-cmp__col--win .af-cmp__row:last-child{border-bottom:0}
.af-cmp__col--win .af-cmp__row span{color:var(--lime)}

/* work */
.af-card.af-work{padding:0;gap:0;overflow:hidden;border-radius:16px}
.af-work__chrome{background:#1C1C20;padding:9px 12px;display:flex;gap:6px}
.af-work__chrome i{width:8px;height:8px;border-radius:999px;background:#3A3A40}
.af-work__shot{height:200px;overflow:hidden;background:var(--band)}
.af-work__shot img{width:100%;height:100%;object-fit:cover}
.af-work__body{padding:22px;display:flex;flex-direction:column;gap:10px}
.af-chip{align-self:flex-start;font-size:11px;font-weight:600;color:var(--lime);background:#1D2408;padding:4px 9px;border-radius:999px}
.af-page a.af-work:hover{color:var(--text)}

/* testimonials */
.af-card.af-tst{margin:0;padding:30px;gap:24px}
.af-tst blockquote{margin:0;font-size:16px;line-height:1.65;font-style:italic;color:#E4E4E7}
.af-tst figcaption{display:flex;gap:12px;align-items:center}
.af-avatar{width:38px;height:38px;border-radius:999px;background:#1D2408;color:var(--lime);font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;flex:none}
.af-tst__by{display:flex;flex-direction:column;gap:2px}
.af-tst__by strong{font-size:14px;font-weight:600}
.af-tst__by span{font-size:12px;color:var(--muted)}

/* FAQ */
.af-faq details{border-bottom:1px solid var(--edge)}
.af-faq summary{list-style:none;cursor:pointer;min-height:64px;padding:18px 0;display:flex;justify-content:space-between;align-items:center;gap:16px;font:500 16px 'Lexend',system-ui,sans-serif;color:var(--text)}
.af-faq summary::-webkit-details-marker{display:none}
.af-faq summary:hover{color:var(--lime)}
.af-faq summary::after{content:"+";font-size:22px;font-weight:300;color:var(--lime)}
.af-faq details[open] summary::after{content:"\2212"}
.af-faq p{margin:0 0 20px;font-size:15px;line-height:1.65;color:var(--muted);max-width:640px}

/* final CTA */
.af-final-wrap{padding-bottom:96px}
.af-final{background:var(--card);border:1px solid #2E3514;border-radius:22px;padding:clamp(32px,5vw,64px);display:flex;flex-direction:column;gap:22px;align-items:center;text-align:center}
.af-final .af-badge{align-self:center}
.af-page .af-final h2{margin:0;font-size:clamp(30px,4vw,48px);font-weight:700;letter-spacing:-.03em;line-height:1.08;max-width:760px;color:var(--text)}
.af-final p{margin:0;font-size:16px;line-height:1.6;color:var(--muted);max-width:560px}
.af-page .af-cta{background:var(--lime);color:var(--ink);font-weight:600;font-size:15px;padding:17px 26px;border-radius:10px}
.af-page .af-cta:hover{filter:brightness(1.08);color:var(--ink)}
.af-final__call{font-size:13px;color:var(--muted)}
.af-page .af-final__call a{font-weight:500}

/* ---- phones ---- */
@media (max-width:560px){
  .af-hero{padding:36px 16px 64px;gap:40px}
  .af-wrap{padding:0 16px}
  .af-wrap.af-section{padding:72px 16px}
  .af-section,.af-section--line{padding:72px 0}
  .af-section--tight{padding:40px 0 72px}
  .af{padding:22px 18px;border-radius:18px}
  .af-page .af-title{font-size:22px}
  .af-choices.c2 .wpcf7-radio,.af-choices.c3 .wpcf7-radio{grid-template-columns:1fr}
  .af-step{gap:24px}
  .af .af-cc{flex-basis:112px;width:112px;padding-right:30px;background-position:right 10px center}
  .af .af-back{padding:0 16px}
  .af-grid--svc,.af-grid--tst,.af-grid--work,.af-cmp{grid-template-columns:1fr}
  .af-logos{gap:16px 32px;font-size:18px}
}
@media (prefers-reduced-motion:reduce){
  .af-page *{transition:none !important}
}
