/* ==================================================================
   HiveOp AI Visibility Report

   Scoped to .hiveop-aiv so it cannot leak into the host theme, and
   written so the theme cannot leak into it: the reset below neutralises
   the handful of declarations themes most often apply globally
   (uppercase headings, rounded buttons, inherited line heights) which
   otherwise make the tool look like a different piece of software
   depending on whose site it sits on.
   ================================================================== */

.hiveop-aiv {
  --ink: #1A1A1A;
  --gold: #C9A84C;
  --gold-d: #a9832f;
  --mut: #6b675f;
  --line: #E4E1D8;
  --grey: #F1EFEA;
  --canvas: #FAF9F6;
  --ok: #2f7d5c;
  --warn: #a9832f;
  --bad: #b04a3a;

  font-family: 'Comfortaa', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  padding: clamp(20px, 4vw, 40px);
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* The gold corner mark used across HiveOp material. */
.hiveop-aiv::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 18px; height: 18px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
}

.hiveop-aiv *,
.hiveop-aiv *::before,
.hiveop-aiv *::after { box-sizing: border-box; }

/* Theme neutraliser. */
.hiveop-aiv h2,
.hiveop-aiv h3,
.hiveop-aiv h4 {
  text-transform: none;
  letter-spacing: normal;
  font-family: 'Alice', Georgia, serif;
  font-weight: 500;
  margin: 0;
}
.hiveop-aiv p { margin: 0; }
.hiveop-aiv button,
.hiveop-aiv input {
  font-family: inherit;
  border-radius: 0;
  margin: 0;
}

.aiv-sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.aiv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- the form ---------------- */

.aiv-h { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.2; }
.aiv-sub { color: var(--mut); font-size: 14px; margin-top: 10px; max-width: 54ch; }

.aiv-row { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }

.aiv-row input[type="text"] {
  flex: 1 1 240px;
  min-width: 0;
  /* 16px minimum: anything smaller makes iOS Safari zoom the page on
     focus, which on a one-field form is deeply annoying. */
  font-size: 16px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  min-height: 52px;
}
.aiv-row input[type="text"]:focus {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
  border-color: var(--gold);
}
.aiv-row input[type="text"]::placeholder { color: #a8a49b; }

.aiv-btn {
  flex: 0 0 auto;
  background: var(--ink);
  color: #fff;
  border: 0;
  padding: 15px 30px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 52px;
  transition: opacity .15s;
}
.aiv-btn:hover { opacity: .88; }
.aiv-btn:disabled { opacity: .45; cursor: default; }
.aiv-btn.gold { background: var(--gold); color: var(--ink); }

.aiv-note { color: var(--mut); font-size: 12.5px; margin-top: 12px; }

.aiv-err {
  margin-top: 14px;
  border-left: 2px solid var(--bad);
  background: #fdf4f2;
  padding: 11px 14px;
  font-size: 13.5px;
}

/* ---------------- working ---------------- */

.aiv-working { margin-top: 26px; }
.aiv-bar { height: 3px; background: var(--grey); overflow: hidden; }
.aiv-bar i {
  display: block; height: 100%; width: 30%;
  background: var(--gold);
  animation: aiv-slide 1.1s ease-in-out infinite;
}
@keyframes aiv-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(400%); }
}
.aiv-working p { margin-top: 12px; color: var(--mut); font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
  .aiv-bar i { animation: none; width: 100%; opacity: .5; }
  .hiveop-aiv * { transition: none !important; }
}

/* ---------------- the score ---------------- */

.aiv-score {
  background: var(--ink);
  color: #fff;
  padding: clamp(20px, 3.5vw, 30px);
  display: flex;
  gap: clamp(18px, 4vw, 34px);
  align-items: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.aiv-dial { flex: 0 0 auto; position: relative; width: 116px; height: 116px; }
.aiv-dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.aiv-dial .track { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 9; }
.aiv-dial .val   { fill: none; stroke: var(--gold); stroke-width: 9; stroke-linecap: butt;
                   transition: stroke-dashoffset 1s cubic-bezier(.2,.7,.3,1); }
.aiv-dial b {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Alice', Georgia, serif; font-weight: 500; font-size: 34px;
}
.aiv-score-t { flex: 1 1 250px; min-width: 0; }
.aiv-eyebrow {
  font-size: 10px; letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.aiv-band {
  font-family: 'Alice', Georgia, serif; font-weight: 500;
  font-size: clamp(20px, 3vw, 26px); margin: 4px 0 6px;
}
.aiv-line { color: rgba(255,255,255,.82); font-size: 13.5px; }
.aiv-host { color: rgba(255,255,255,.5); font-size: 12px; margin-top: 10px; word-break: break-all; }

/* ---------------- categories ---------------- */

.aiv-cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); margin-top: 1px; }
.aiv-cat { background: #fff; padding: 18px; }
.aiv-cat-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.aiv-cat-h b { font-size: 14px; font-weight: 700; }
.aiv-cat-pct { font-family: 'Alice', Georgia, serif; font-size: 20px; }
.aiv-cat-bar { height: 4px; background: var(--grey); margin: 9px 0 8px; }
.aiv-cat-bar i { display: block; height: 100%; background: var(--gold); transition: width .8s ease .2s; }
.aiv-cat p { color: var(--mut); font-size: 12.5px; }
.aiv-cat-n { font-size: 11.5px; color: var(--mut); margin-top: 6px; }

/* ---------------- findings ---------------- */

.aiv-sec { margin-top: 30px; }
.aiv-sec > h3 { font-size: 18px; margin-bottom: 4px; }
.aiv-sec > p.aiv-sub { margin-bottom: 14px; }

.aiv-item {
  border: 1px solid var(--line);
  border-left-width: 3px;
  background: #fff;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.aiv-item.pass { border-left-color: var(--ok); }
.aiv-item.warn { border-left-color: var(--warn); }
.aiv-item.fail { border-left-color: var(--bad); }

.aiv-item-h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.aiv-item-h b { font-size: 14px; font-weight: 700; }
.aiv-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; padding: 2px 7px; border: 1px solid;
  white-space: nowrap;
}
.aiv-tag.pass { color: var(--ok);  border-color: var(--ok); }
.aiv-tag.warn { color: var(--warn); border-color: var(--warn); }
.aiv-tag.fail { color: var(--bad); border-color: var(--bad); background: #fdf4f2; }
.aiv-found { color: var(--mut); font-size: 13px; margin-top: 5px; }
.aiv-fix {
  font-size: 13px; margin-top: 9px;
  border-left: 2px solid var(--gold); padding-left: 11px;
}
.aiv-fix b { display: block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-d); margin-bottom: 3px; }

/* ---------------- the gate ---------------- */

.aiv-gate {
  margin-top: 26px;
  border: 1px solid var(--gold);
  background: #FBF7EC;
  padding: clamp(18px, 3.5vw, 28px);
  position: relative;
}
.aiv-gate h3 { font-size: 19px; }
.aiv-gate > p { color: var(--mut); font-size: 13.5px; margin-top: 8px; max-width: 54ch; }
.aiv-gate-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.aiv-gate input {
  width: 100%; font-size: 16px; padding: 13px 14px;
  border: 1px solid var(--line); background: #fff; min-height: 50px;
}
.aiv-gate input:focus { outline: 2px solid var(--gold); outline-offset: -2px; }
.aiv-gate .aiv-btn { margin-top: 12px; width: 100%; }
.aiv-gate-note { font-size: 11.5px; color: var(--mut); margin-top: 10px; }

.aiv-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.aiv-cta a {
  background: var(--gold); color: var(--ink); text-decoration: none;
  padding: 15px 30px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; min-height: 52px;
  display: inline-flex; align-items: center;
}
.aiv-again {
  background: none; border: 1px solid var(--line); color: var(--ink);
  padding: 15px 24px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; cursor: pointer; min-height: 52px;
}
.aiv-again:hover { border-color: var(--gold); }

.aiv-caveat {
  margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--mut); line-height: 1.65;
}

/* ---------------- phone ---------------- */

@media (max-width: 680px) {
  .aiv-cats { grid-template-columns: 1fr; }
  .aiv-gate-fields { grid-template-columns: 1fr; }
  .aiv-btn { width: 100%; }
  .aiv-row { gap: 12px; }
  .aiv-score { gap: 18px; }
  .aiv-dial { width: 92px; height: 92px; }
  .aiv-dial b { font-size: 27px; }
  .aiv-cta a, .aiv-again { width: 100%; justify-content: center; }
}
