/* Free AI Search Visibility Audit form + its thank-you page (page-templates/aeo-audit-*.php).
   Standalone pages (no site header, no Tailwind), so global resets are fine here. */
:root{
  --aeo-brand:#012bff;--aeo-brand-dark:#0020c4;--aeo-violet:#6d5cff;--aeo-navy:#03087a;--aeo-ink:#00033f;--aeo-text:#2b2d3a;--aeo-muted:#646779;
  --aeo-pale:#f3f5ff;--aeo-line:#e3e7f7;--aeo-fill:#f5f7fd;--aeo-field:#dfe4f5;--aeo-bad:#b42318;--aeo-badbg:#fdecec;--aeo-ok:#12894c;--aeo-okbg:#e7f7ee;
  --aeo-sans:"Plus Jakarta Sans",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --aeo-display:"Bricolage Grotesque","Plus Jakarta Sans",system-ui,sans-serif;
  --aeo-radius:28px;--aeo-ease:cubic-bezier(.22,1,.36,1)
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.aeo-body{margin:0;min-height:100vh;min-height:100dvh;background:var(--aeo-pale);font-family:var(--aeo-sans);color:var(--aeo-text);-webkit-font-smoothing:antialiased;overflow-x:hidden}
[hidden]{display:none!important}
button,input,textarea{font:inherit;color:inherit}
:focus-visible{outline:3px solid rgba(1,43,255,.4);outline-offset:3px}
.aeo-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* ---------- background: navy brand band with glow + faint grid, card floats over it ---------- */
.aeo-bg{position:absolute;inset:0 0 auto;height:min(440px,60vh);z-index:0;pointer-events:none;overflow:hidden;
  background:radial-gradient(120% 90% at 50% 0%,#0a1a9e 0%,#03087a 45%,#00033f 100%)}
.aeo-bg::before{content:"";position:absolute;inset:0;
  background-image:linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px);background-size:48px 48px;
  -webkit-mask-image:radial-gradient(ellipse 70% 80% at 50% 0%,#000 20%,transparent 75%);mask-image:radial-gradient(ellipse 70% 80% at 50% 0%,#000 20%,transparent 75%)}
.aeo-glow{position:absolute;border-radius:50%}
.aeo-glow--a{width:560px;height:560px;left:-120px;top:-260px;background:radial-gradient(closest-side,rgba(1,43,255,.55),rgba(1,43,255,0))}
.aeo-glow--b{width:520px;height:520px;right:-160px;top:-180px;background:radial-gradient(closest-side,rgba(109,92,255,.45),rgba(109,92,255,0))}

/* ---------- layout ---------- */
.aeo-wrap{position:relative;z-index:1;max-width:640px;margin:0 auto;padding:clamp(28px,7vw,72px) 16px max(32px,env(safe-area-inset-bottom))}
.aeo-card{background:#fff;border-radius:var(--aeo-radius);padding:32px 22px 26px;
  box-shadow:0 1px 0 rgba(255,255,255,.6) inset,0 2px 4px rgba(0,3,63,.04),0 40px 80px -32px rgba(0,3,63,.45);animation:aeo-rise .7s var(--aeo-ease) both}
@media (min-width:640px){.aeo-card{padding:44px 48px 34px}}

/* ---------- header ---------- */
.aeo-head{text-align:center;margin-bottom:28px}
.aeo-logo-link{display:inline-block;border-radius:8px}
.aeo-logo{display:block;height:30px;width:auto;max-width:100%;margin:0 auto}
@media (min-width:640px){.aeo-logo{height:34px}}
.aeo-kicker{margin:26px 0 10px;font-size:12px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:var(--aeo-brand)}
.aeo-title{margin:0 0 12px;font-family:var(--aeo-display);font-size:clamp(30px,6.4vw,42px);line-height:1.06;font-weight:700;letter-spacing:-.03em;color:var(--aeo-ink);text-wrap:balance}
.aeo-title em{font-style:normal;background:linear-gradient(100deg,var(--aeo-brand),var(--aeo-violet));-webkit-background-clip:text;background-clip:text;color:transparent}
.aeo-title--sm{font-size:clamp(24px,4.5vw,30px)}
.aeo-intro{max-width:440px;margin:0 auto;font-size:16px;line-height:1.55;color:var(--aeo-muted);text-wrap:pretty}

/* ---------- progress ---------- */
.aeo-steps{display:none;position:relative;margin:0 0 26px;padding:0;list-style:none;grid-template-columns:1fr 1fr;gap:10px}
.aeo-form.is-stepped .aeo-steps{display:grid}
.aeo-steps-item{display:flex;align-items:center;gap:10px;padding-bottom:12px;font-size:14px;font-weight:700;color:#9a9db0;position:relative;transition:color .3s}
.aeo-steps-item::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;border-radius:3px;background:var(--aeo-line)}
.aeo-steps-item::before{content:"";position:absolute;left:0;bottom:0;z-index:1;height:3px;width:0;border-radius:3px;background:linear-gradient(90deg,var(--aeo-brand),var(--aeo-violet));transition:width .5s var(--aeo-ease)}
.aeo-steps-dot{display:flex;align-items:center;justify-content:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;border:1.5px solid var(--aeo-field);font-size:12.5px;font-weight:800;color:#9a9db0;background:#fff;transition:background-color .3s,border-color .3s,color .3s}
.aeo-steps-item.is-active,.aeo-steps-item.is-done{color:var(--aeo-ink)}
.aeo-steps-item.is-active::before,.aeo-steps-item.is-done::before{width:100%}
.aeo-steps-item.is-active .aeo-steps-dot,.aeo-steps-item.is-done .aeo-steps-dot{background:var(--aeo-brand);border-color:var(--aeo-brand);color:#fff}

/* ---------- steps ---------- */
.aeo-step+.aeo-step{margin-top:26px}
.aeo-form.is-stepped .aeo-step{margin-top:0}
.aeo-form.is-stepped .aeo-step:not(.is-active){display:none}
.aeo-form.is-stepped .aeo-step.is-active{animation:aeo-step .45s var(--aeo-ease) both}
.aeo-form:not(.is-stepped) [data-next],.aeo-form:not(.is-stepped) [data-back]{display:none}

/* ---------- fields ---------- */
.aeo-alert{margin:0 0 20px;padding:12px 16px;border-radius:12px;background:var(--aeo-badbg);color:var(--aeo-bad);font-size:14px;font-weight:600;line-height:1.45}
.aeo-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;overflow:hidden}
.aeo-grid{display:grid;grid-template-columns:1fr;gap:18px}
@media (min-width:560px){.aeo-grid{grid-template-columns:1fr 1fr;gap:18px 16px}.aeo-span{grid-column:1/-1}}
.aeo-field{display:flex;flex-direction:column;min-width:0}
.aeo-label{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 8px;font-size:14px;line-height:1.3;font-weight:700;color:var(--aeo-ink)}
.aeo-opt{font-size:12px;font-weight:600;color:#9a9db0}
.aeo-req{margin-left:3px;color:var(--aeo-bad);font-weight:700}
.aeo-input{display:block;width:100%;min-height:52px;margin:0;padding:0 16px;font-size:16px;color:var(--aeo-ink);background:var(--aeo-fill);
  border:1.5px solid transparent;border-radius:14px;outline:none;-webkit-appearance:none;appearance:none;
  transition:border-color .2s,box-shadow .2s,background-color .2s}
.aeo-textarea{min-height:96px;padding:14px 16px;line-height:1.5;resize:vertical}
.aeo-input::placeholder{color:#a2a5b8;opacity:1}
.aeo-input:hover{background:#eff2fb}
.aeo-input:focus{background:#fff;border-color:var(--aeo-brand);box-shadow:0 0 0 4px rgba(1,43,255,.12)}
.aeo-input[aria-invalid="true"]{background:#fff;border-color:var(--aeo-bad);box-shadow:0 0 0 4px rgba(180,35,24,.08)}
.aeo-err{margin:6px 0 0;font-size:13px;font-weight:600;line-height:1.35;color:var(--aeo-bad)}
.aeo-err:empty{display:none}

/* students per month: segmented pills */
.aeo-pills{display:flex;flex-wrap:wrap;gap:8px;border-radius:14px}
.aeo-pill{flex:1 1 28%}
@media (min-width:560px){.aeo-pill{flex:1 1 0}}
.aeo-pills[aria-invalid="true"]{outline:2px solid rgba(180,35,24,.35);outline-offset:4px}
.aeo-pill{position:relative;margin:0;cursor:pointer;min-width:0}
.aeo-pill input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.aeo-pill span{display:flex;align-items:center;justify-content:center;min-height:46px;padding:0 10px;border:1.5px solid transparent;border-radius:12px;background:var(--aeo-fill);
  font-size:14.5px;font-weight:600;color:var(--aeo-ink);text-align:center;transition:background-color .2s,border-color .2s,color .2s,transform .2s var(--aeo-ease),box-shadow .2s}
.aeo-pill:hover span{background:#eaeefc}
.aeo-pill input:checked+span{background:var(--aeo-brand);color:#fff;box-shadow:0 10px 20px -10px rgba(1,43,255,.8)}
.aeo-pill input:focus-visible+span{outline:3px solid rgba(1,43,255,.4);outline-offset:2px}
.aeo-pill:active span{transform:scale(.97)}

/* optional note, folded away */
.aeo-more{border:1.5px dashed var(--aeo-field);border-radius:14px;transition:border-color .2s,background-color .2s}
.aeo-more[open]{border-style:solid;border-color:var(--aeo-line);background:#fbfcff}
.aeo-more summary{display:flex;align-items:center;gap:10px;min-height:50px;padding:0 16px;cursor:pointer;list-style:none;font-size:14px;font-weight:700;color:var(--aeo-ink);border-radius:14px}
.aeo-more summary::-webkit-details-marker{display:none}
.aeo-more summary .aeo-opt{margin-left:auto}
.aeo-more summary:hover{color:var(--aeo-brand)}
.aeo-more-icon{position:relative;flex:0 0 20px;width:20px;height:20px;border-radius:50%;background:var(--aeo-pale)}
.aeo-more-icon::before,.aeo-more-icon::after{content:"";position:absolute;left:50%;top:50%;width:10px;height:2px;margin:-1px 0 0 -5px;border-radius:2px;background:var(--aeo-brand);transition:transform .25s var(--aeo-ease)}
.aeo-more-icon::after{transform:rotate(90deg)}
.aeo-more[open] .aeo-more-icon::after{transform:rotate(0)}
.aeo-more .aeo-textarea{display:block;width:calc(100% - 24px);margin:0 12px 12px;background:#fff;border-color:var(--aeo-line)}

/* ---------- buttons ---------- */
.aeo-actions{margin-top:26px}
.aeo-actions--split{display:flex;align-items:center;justify-content:space-between;gap:12px}
.aeo-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:56px;padding:0 30px;border:0;border-radius:999px;
  background:linear-gradient(120deg,var(--aeo-brand) 0%,#2a3cff 55%,var(--aeo-violet) 140%);color:#fff;font-size:16px;font-weight:700;text-decoration:none;cursor:pointer;
  box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 16px 30px -14px rgba(1,43,255,.75);transition:box-shadow .25s,transform .25s var(--aeo-ease),filter .25s}
.aeo-btn:hover{filter:brightness(1.08);box-shadow:0 1px 0 rgba(255,255,255,.25) inset,0 20px 36px -14px rgba(1,43,255,.85)}
.aeo-btn:active{transform:scale(.98)}
.aeo-btn--block{width:100%}
.aeo-actions--split .aeo-btn{flex:1;max-width:320px}
.aeo-btn-arrow{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--aeo-ease)}
.aeo-btn:hover .aeo-btn-arrow{transform:translateX(3px)}
.aeo-btn[aria-busy="true"]{cursor:progress;filter:saturate(.85)}
.aeo-btn[aria-busy="true"] .aeo-btn-arrow{display:none}
.aeo-btn[aria-busy="true"]::after{content:"";width:18px;height:18px;border:2.5px solid rgba(255,255,255,.4);border-top-color:#fff;border-radius:50%;animation:aeo-spin .8s linear infinite}
.aeo-back{display:inline-flex;align-items:center;gap:8px;min-height:48px;padding:0 14px 0 6px;border:0;border-radius:999px;background:none;font-size:15px;font-weight:700;color:var(--aeo-muted);cursor:pointer;transition:color .2s}
.aeo-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--aeo-ease)}
.aeo-back:hover{color:var(--aeo-ink)}
.aeo-back:hover svg{transform:translateX(-3px)}

.aeo-trust{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:22px 0 0;font-size:13px;font-weight:600;color:#8d90a3}
.aeo-trust svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.aeo-trust span{color:#c3c6d4}

/* in-page thank-you (only when the thank-you page is missing) */
.aeo-done{text-align:center;padding:4px 0}
.aeo-done-icon{display:flex;align-items:center;justify-content:center;width:60px;height:60px;margin:0 auto 16px;border-radius:50%;background:var(--aeo-okbg);
  box-shadow:0 0 0 8px rgba(18,137,76,.08);animation:aeo-pop .6s var(--aeo-ease) both}
.aeo-done-icon svg{width:30px;height:30px;fill:none;stroke:var(--aeo-ok);stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}

/* footer lines */
.aeo-foot{margin:28px 0 4px;text-align:center;font-size:14.5px;color:var(--aeo-muted)}
.aeo-foot a{font-weight:700;color:var(--aeo-ink);text-decoration:none;border-bottom:1.5px solid rgba(1,43,255,.3)}
.aeo-foot a:hover{color:var(--aeo-brand);border-color:var(--aeo-brand)}
.aeo-copy{margin:0;text-align:center;font-size:12.5px;color:#8a8b9c}

/* ---------- thank-you page ---------- */
.aeo-thanks{text-align:center}
.aeo-thanks .aeo-logo{margin-bottom:32px}
.aeo-done-icon--lg{width:84px;height:84px;box-shadow:0 0 0 12px rgba(18,137,76,.07)}
.aeo-done-icon--lg svg{width:40px;height:40px}
.aeo-content{max-width:620px;margin:0 auto}
.aeo-content>*+*{margin-top:18px}
.aeo-content p{margin:0;font-size:17px;line-height:1.6;color:var(--aeo-muted)}
.aeo-content a{color:var(--aeo-brand)}
.aeo-content h2,.aeo-content h3{margin:30px 0 0;font-size:12px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;color:var(--aeo-brand)}
.aeo-content ol{display:grid;grid-template-columns:1fr;gap:12px;margin:16px 0 0;padding:0;list-style:none;text-align:left;counter-reset:step}
.aeo-content ol>li{counter-increment:step;padding:18px;border:1px solid var(--aeo-line);border-radius:18px;background:var(--aeo-pale);font-size:15px;line-height:1.5;color:var(--aeo-ink)}
.aeo-content ol>li::before{content:counter(step,decimal-leading-zero);display:block;margin-bottom:8px;font-family:var(--aeo-display);font-size:24px;font-weight:700;color:var(--aeo-brand)}
.aeo-content ul{display:inline-flex;flex-direction:column;gap:8px;margin:0;padding-left:22px;text-align:left}
.aeo-thanks-actions{margin-top:32px}

/* ---------- motion ---------- */
@keyframes aeo-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
@keyframes aeo-step{from{opacity:0;transform:translateX(14px)}to{opacity:1;transform:none}}
@keyframes aeo-pop{0%{opacity:0;transform:scale(.6)}60%{transform:scale(1.06)}100%{opacity:1;transform:none}}
@keyframes aeo-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
  .aeo-btn[aria-busy="true"]::after{animation:aeo-spin 1.6s linear infinite!important}
}
@media (forced-colors:active){
  .aeo-pill input:checked+span{forced-color-adjust:none;background:Highlight;color:HighlightText}
  .aeo-input,.aeo-pill span,.aeo-btn{border:1px solid ButtonText}
  .aeo-title em{color:LinkText;background:none}
}
