/* ============================================================
   99creatix AI Visibility Checker
   Page-specific layer. The shared design system (.c99) already
   loads site-wide; this only carries what is unique to this page
   plus the handful of values that differ from the homepage.
   ============================================================ */

:root { --miss: #FF7A6B; }

/* ---- values that differ from the homepage build ---- */
.c99.c99-ai .display { font-size: clamp(2.4rem, 7.5vw, 5.6rem); line-height: 0.88; }
.c99.c99-ai .opening .hero { padding-block: clamp(2.75rem, 7vw, 5rem) clamp(2.5rem, 6vw, 4rem); }
.c99.c99-ai .hero__eyebrow { padding-bottom: 1.5rem; }
.c99.c99-ai .hero h1 { margin-bottom: 1.6rem; }
.c99.c99-ai .hero__sub { max-width: 52ch; margin: 0 0 2.2rem; }
.c99.c99-ai .band__head { margin-bottom: clamp(2rem, 5vw, 3rem); }
.c99.c99-ai .closer p { max-width: 46ch; }

/* the logo mark is a link on this page */
.c99.c99-ai .nav__mark { text-decoration: none; color: inherit; }

/* ---- scanner ---- */
.c99.c99-ai .scan { max-width: 720px; }
.c99.c99-ai .scan__row { display: flex; gap: 0.5rem; }
.c99.c99-ai .scan input[type="text"] {
  flex: 1; min-width: 0; background: transparent; border: 1px solid var(--panel-rule);
  border-radius: 0; color: var(--panel-ink); font-family: var(--mono);
  font-size: 0.95rem; padding: 1.05rem 1.15rem;
}
.c99.c99-ai .scan input::placeholder { color: var(--panel-mute); }
.c99.c99-ai .scan input:focus { border-color: var(--teal); outline: none; }
.c99.c99-ai .scan__note {
  font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.04em;
  color: var(--panel-mute); line-height: 1.6; margin: 0.8rem 0 0;
}
@media (max-width: 640px) { .c99.c99-ai .scan__row { flex-direction: column; } }

.c99.c99-ai .scan__status {
  display: none; margin-top: 1.4rem; font-family: var(--mono);
  font-size: 0.72rem; letter-spacing: 0.05em; color: var(--teal);
}
.c99.c99-ai .scan__status.on { display: block; }
.c99.c99-ai .scan__status i { display: inline-block; width: 0.6em; animation: c99Blink 1s steps(2) infinite; font-style: normal; }
@keyframes c99Blink { 50% { opacity: 0; } }

/* ---- results ---- */
.c99.c99-ai .result { display: none; padding-block: 0 clamp(2.5rem, 6vw, 4rem); }
.c99.c99-ai .result.on { display: block; }
.c99.c99-ai .result__grid {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start; border-top: 1px solid var(--panel-rule); padding-top: 2rem; max-width: 980px;
}
.c99.c99-ai .score__v {
  font-family: var(--mono); font-weight: 500; font-size: clamp(3.4rem, 9vw, 6.2rem);
  letter-spacing: -0.05em; line-height: 1; color: var(--teal); font-variant-numeric: tabular-nums;
}
.c99.c99-ai .score__k {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--panel-mute); display: block; margin-bottom: 0.6rem;
}
.c99.c99-ai .score__grade {
  font-family: var(--grot); font-weight: 700; font-size: 1.1rem;
  letter-spacing: -0.02em; margin-top: 0.9rem; max-width: 22ch;
}
.c99.c99-ai .checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.68rem; }
.c99.c99-ai .checks li { display: flex; align-items: baseline; gap: 0.45rem; font-family: var(--mono); font-size: 0.75rem; }
.c99.c99-ai .checks .item { color: var(--panel-mute); }
.c99.c99-ai .checks .lead { flex: 1; border-bottom: 1px dotted var(--panel-rule); transform: translateY(-3px); min-width: 0.75rem; }
.c99.c99-ai .checks .val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.c99.c99-ai .checks .val.ok { color: var(--teal); }
.c99.c99-ai .checks .val.part { color: var(--blue-l); }
.c99.c99-ai .checks .val.miss { color: var(--miss); }
@media (max-width: 700px) { .c99.c99-ai .result__grid { grid-template-columns: 1fr; } }

/* ---- audit card ---- */
.c99.c99-ai .audit {
  border: 1px solid var(--panel-rule); background: var(--panel-2);
  padding: clamp(1.5rem, 4vw, 2.4rem); margin-top: 2.2rem; max-width: 980px;
}
.c99.c99-ai .audit h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 0.8rem; }
.c99.c99-ai .audit__sub { color: var(--panel-mute); margin: 0 0 1.6rem; max-width: 62ch; font-size: 0.97rem; }
.c99.c99-ai .audit__note { font-family: var(--mono); font-size: 0.63rem; letter-spacing: 0.04em; color: var(--panel-mute); }

/* ---- the Kadence audit form wearing the reference's card ----
   These sit above the site-wide light-ground form rules, which are
   (0,3,0); .c99.c99-ai .audit ... is (0,4,x) and wins without !important. */
.c99.c99-ai .audit .wp-block-kadence-advanced-form { width: 100%; max-width: none; }
.c99.c99-ai .audit .kb-advanced-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; max-width: none;
}
.c99.c99-ai .audit .kb-adv-form-field { margin: 0; padding: 0; }
/* hidden carriers must not occupy a grid cell */
.c99.c99-ai .audit .wp-block-kadence-advanced-form-hidden { display: none; }
.c99.c99-ai .audit .kb-adv-form-field.kb-submit-field {
  grid-column: 1 / -1; margin-top: 0.3rem;
  display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap;
}

.c99.c99-ai .audit .wp-block-kadence-advanced-form .kb-field,
.c99.c99-ai .audit .wp-block-kadence-advanced-form input.kb-field {
  width: 100%; background: transparent; border: 1px solid var(--panel-rule); border-radius: 0;
  color: var(--panel-ink); font-family: var(--mono); font-size: 0.85rem;
  padding: 0.95rem 1.05rem; box-shadow: none;
}
.c99.c99-ai .audit .wp-block-kadence-advanced-form .kb-field::placeholder { color: var(--panel-mute); }
.c99.c99-ai .audit .wp-block-kadence-advanced-form .kb-field:focus { border-color: var(--teal); outline: none; box-shadow: none; }

.c99.c99-ai .audit .kb-submit-field button.kb-button {
  border: 1px solid var(--panel-ink); background: var(--panel-ink); color: var(--panel);
  border-radius: 0; box-shadow: none;
  font-family: var(--mono); font-size: 0.74rem; font-weight: 400;
  letter-spacing: 0.11em; text-transform: uppercase;
  padding: 1.05rem 1.7rem; cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.c99.c99-ai .audit .kb-submit-field button.kb-button:hover,
.c99.c99-ai .audit .kb-submit-field button.kb-button:focus {
  background: transparent; color: var(--panel-ink); border-color: var(--panel-ink);
}

/* confirmation, matching the reference's teal box */
.c99.c99-ai .audit .kb-adv-form-message {
  border: 1px solid var(--teal); padding: 1.1rem 1.2rem; margin: 0;
  font-family: var(--mono); font-size: 0.75rem; color: var(--teal); line-height: 1.6;
  background: transparent;
}
.c99.c99-ai .audit .kb-adv-form-message.kb-adv-form-warning { border-color: var(--miss); color: var(--miss); }
.c99.c99-ai .audit .kb-adv-form-errors,
.c99.c99-ai .audit .kb-adv-form-error-msg { font-family: var(--mono); font-size: 0.66rem; color: var(--miss); }

@media (max-width: 640px) { .c99.c99-ai .audit .kb-advanced-form { grid-template-columns: 1fr; } }

/* ---- light bands ---- */
.c99.c99-ai .figs { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .c99.c99-ai .figs { grid-template-columns: 1fr; }
  .c99.c99-ai .figs > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .c99.c99-ai .figs > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
}

.c99.c99-ai .cols3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.c99.c99-ai .cols3 > div { padding: 1.5rem 1.5rem 1.75rem 0; }
.c99.c99-ai .cols3 > div + div { border-left: 1px solid var(--rule); padding-left: 1.5rem; }
.c99.c99-ai .cols3 .k {
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--blue); display: block; margin-bottom: 0.9rem;
}
.c99.c99-ai .cols3 h3 { font-size: 1.22rem; letter-spacing: -0.03em; text-transform: uppercase; margin-bottom: 0.7rem; }
.c99.c99-ai .cols3 p { margin: 0; color: var(--ink-mute); font-size: 0.93rem; line-height: 1.55; }
@media (max-width: 820px) {
  .c99.c99-ai .cols3 { grid-template-columns: 1fr; }
  .c99.c99-ai .cols3 > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
}

.c99.c99-ai .assist { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.c99.c99-ai .assist div { background: var(--paper); padding: 1.2rem 1.3rem 1.35rem; }
.c99.c99-ai .assist b { display: block; font-size: 0.98rem; letter-spacing: -0.02em; margin-bottom: 0.35rem; }
.c99.c99-ai .assist span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.08em; color: var(--ink-soft); }
@media (max-width: 860px) { .c99.c99-ai .assist { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .c99.c99-ai .assist { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .c99.c99-ai .scan__status i { animation: none; }
}
