/* ==========================================================================
   FREE AUDIT INTAKE (audit.html)
   Step 1 finds their site and asks "is this you?"; step 2 is the short form.
   Desktop: two columns. Phone: stacked, lookup card on top.
   ========================================================================== */
section.ai {
  padding: 132px 0 96px;
  background: #ffffff;
  font-family: 'Geist', sans-serif;
  color: #0c0d12;
}
.ai-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--pad, 24px); }

.ai-head { margin-bottom: 36px; }
.ai-label {
  font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: #6b7280; margin-bottom: 14px;
}
.ai-title {
  font-family: 'Geist', sans-serif; font-weight: 400;
  font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.035em;
  margin: 0; color: #0c0d12;
}
.ai-title em {
  font-style: normal; font-weight: 500;
  background: linear-gradient(135deg, #5b6cff 0%, #a967ff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* two columns once the site is confirmed; one centred column before */
.ai-grid { display: grid; grid-template-columns: minmax(0, 560px); gap: 48px; align-items: start; }
.ai-grid.is-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
.ai-col[hidden] { display: none; }

.ai-stepno {
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 11.5px; letter-spacing: .08em;
  text-transform: uppercase; color: #6f5fd1; margin-bottom: 14px;
}

/* ---- shared controls ---- */
.ai-lbl { display: block; font-size: 13.5px; font-weight: 500; color: #111418; margin-bottom: 7px; }
.ai-lbl--sub { margin-top: 14px; }
.ai-opt { font-weight: 400; color: #8a8f99; margin-left: 6px; font-size: 12.5px; }
.ai-col input[type="text"], .ai-col input[type="email"], .ai-col input[type="tel"], .ai-col textarea {
  width: 100%; box-sizing: border-box;
  font: 400 16px/1.4 'Geist', sans-serif; color: #0c0d12;
  background: #ffffff; border: 1px solid rgba(0,0,0,.14); border-radius: 12px;
  padding: 13px 14px; outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ai-col textarea { resize: vertical; min-height: 84px; }
.ai-col input::placeholder, .ai-col textarea::placeholder { color: #9aa0aa; }
.ai-col input:focus, .ai-col textarea:focus { border-color: #6b6bff; box-shadow: 0 0 0 4px rgba(107,107,255,.14); }
.ai-field.is-bad input { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.10); }
.ai-fielderr, .ai-err { margin: 7px 0 0; font-size: 13px; line-height: 1.4; color: #c23b3b; }
.ai-err a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.ai-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 500 15px/1 'Geist', sans-serif; letter-spacing: -.005em;
  color: #ffffff; background: #0c0d12; border: 1px solid #0c0d12; border-radius: 999px;
  padding: 14px 22px; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s ease, transform .15s ease, opacity .2s ease;
}
.ai-btn:hover { background: #1f232c; transform: translateY(-1px); }
.ai-btn:disabled { opacity: .55; cursor: default; transform: none; }
.ai-btn--ghost { background: #ffffff; color: #0c0d12; border-color: rgba(0,0,0,.16); }
.ai-btn--ghost:hover { background: #f4f4f7; }
.ai-link {
  background: none; border: 0; padding: 0; cursor: pointer;
  font: 500 13.5px 'Geist', sans-serif; color: #5b5bf0; text-decoration: underline; text-underline-offset: 2px;
}

/* ---- step 1 ---- */
.ai-findrow { display: flex; gap: 8px; }
.ai-findrow input { flex: 1; min-width: 0; }

.ai-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.ai-steps li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #9aa0aa; transition: color .3s ease; }
.ai-steps li i {
  flex: none; width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(0,0,0,.16); position: relative; transition: background .3s ease, border-color .3s ease;
}
.ai-steps li.is-work { color: #0c0d12; }
.ai-steps li.is-work i { border-color: rgba(107,107,255,.25); border-top-color: #6b6bff; animation: aiSpin .8s linear infinite; }
.ai-steps li.is-done { color: #0c0d12; }
.ai-steps li.is-done i { background: linear-gradient(135deg, #5b6cff, #a967ff); border-color: transparent; }
.ai-steps li.is-done i::after {
  content: ''; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
@keyframes aiSpin { to { transform: rotate(360deg); } }

.ai-card {
  margin-top: 22px; border: 1px solid rgba(0,0,0,.08); border-radius: 20px; background: #ffffff;
  box-shadow: 0 24px 60px rgba(17,20,40,.08), 0 6px 18px rgba(17,20,40,.05);
  padding: 22px; animation: aiRise .45s cubic-bezier(.22,1,.36,1) both;
}
.ai-card.is-locked { border-color: rgba(107,107,255,.35); }
@keyframes aiRise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ai-card-top { display: flex; align-items: center; gap: 14px; }
.ai-logo {
  flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden;
  display: grid; place-items: center; background: #f4f4f7; border: 1px solid rgba(0,0,0,.06);
  font: 600 22px 'Geist', sans-serif; color: #ffffff;
}
.ai-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; box-sizing: border-box; background: #ffffff; }
.ai-card-id { min-width: 0; flex: 1; }
.ai-card-name { font-size: 18px; font-weight: 500; letter-spacing: -.015em; line-height: 1.25; overflow-wrap: anywhere; }
.ai-card-host { font-family: 'Geist Mono', ui-monospace, monospace; font-size: 12.5px; color: #6b7280; margin-top: 3px; overflow-wrap: anywhere; }
.ai-check {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #ffffff; background: linear-gradient(135deg, #5b6cff, #a967ff);
  animation: aiPop .4s cubic-bezier(.34,1.56,.64,1) both;
}
.ai-check svg { width: 18px; height: 18px; }
@keyframes aiPop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.ai-card-desc { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: #4b5160; }
.ai-card-img { margin-top: 14px; border-radius: 12px; overflow: hidden; border: 1px solid rgba(0,0,0,.06); max-height: 180px; }
.ai-card-img img { display: block; width: 100%; height: 100%; max-height: 180px; object-fit: cover; }
.ai-confirm { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.07); }
.ai-confirm-q { font-size: 15px; font-weight: 500; margin-bottom: 12px; }
.ai-confirm-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: #f6f6fa; font-size: 14.5px; line-height: 1.5; color: #3d4250; }
.ai-note p { margin: 0; }

/* ---- step 2 ---- */
.ai-form { display: grid; gap: 16px; }
.ai-field { margin: 0; min-width: 0; }
fieldset.ai-field { border: 0; padding: 0; }
fieldset.ai-field legend { padding: 0; }
.ai-siteval {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 12px 14px; border-radius: 12px; background: #f6f6fa; border: 1px solid rgba(0,0,0,.06);
  font-family: 'Geist Mono', ui-monospace, monospace; font-size: 14px; overflow-wrap: anywhere;
}
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-chip {
  font: 400 14px/1 'Geist', sans-serif; color: #2b2f39; background: #ffffff;
  border: 1px solid rgba(0,0,0,.14); border-radius: 999px; padding: 10px 14px; cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.ai-chip[aria-pressed="true"] { background: #0c0d12; color: #ffffff; border-color: #0c0d12; }
.ai-consent { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 12px; line-height: 1.5; color: #4b5160; }
.ai-consent input { width: auto; margin-top: 2px; flex: none; }
.ai-hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.ai-submit { width: 100%; padding: 16px 22px; font-size: 16px; }
.ai-under { margin: -6px 0 0; text-align: center; font-size: 13px; color: #6b7280; }
.ai-proof { margin: 10px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(0,0,0,.07); }
.ai-proof blockquote { margin: 0; font-size: 14.5px; line-height: 1.5; color: #2b2f39; }
.ai-proof figcaption { margin-top: 6px; font-size: 12.5px; color: #6b7280; }

/* ---- thank-you ---- */
.ai-done { animation: aiRise .45s cubic-bezier(.22,1,.36,1) both; outline: none; }
.ai-done h2 { font-family: 'Geist', sans-serif; font-weight: 500; font-size: 30px; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 16px; }
.ai-done ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.ai-done li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; color: #2b2f39; overflow-wrap: anywhere; }
.ai-done li::before { content: ''; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #5b6cff, #a967ff); }

/* ---- tablet / phone ---- */
@media (max-width: 900px) {
  .ai-grid.is-two { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 600px) {
  section.ai { padding: 104px 0 64px; }
  .ai-wrap { padding: 0 20px; }
  .ai-head { margin-bottom: 26px; }
  .ai-findrow { flex-direction: column; }
  .ai-findrow .ai-btn { width: 100%; }
  .ai-card { padding: 18px; }
  .ai-confirm-btns .ai-btn { flex: 1 1 0; padding: 13px 12px; }
  .ai-done h2 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-card, .ai-done, .ai-check { animation: none; }
  .ai-steps li.is-work i { animation: none; }
}

/* hidden always wins inside the intake (the form is display:grid) */
section.ai [hidden] { display: none !important; }
/* selected chip — beat global button/active styles */
section.ai .ai-chip[aria-pressed="true"],
section.ai .ai-chip[aria-pressed="true"]:hover,
section.ai .ai-chip[aria-pressed="true"]:focus { background: #0c0d12 !important; color: #ffffff !important; border-color: #0c0d12 !important; }
section.ai .ai-chip:not([aria-pressed="true"]):hover { background: #f4f4f7; }
