/* PROACTIVE Co — AI Visibility Scanner. Shared by /ai-visibility-scanner/
   and the inline embed on /ai-search-visibility/. Class names are
   scanner-specific; .faq-block/.faq-wrap stay inline on the standalone
   page to avoid colliding with the service page's own FAQ. */
/* ── Hero ───────────────────────────────────────────── */
  .scan-hero { position: relative; overflow: hidden; background: #0b0c0c; color: var(--white); padding: 150px 0 90px; }
  .scan-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(900px 500px at 85% 10%, rgba(245,0,0,0.16), transparent 60%), radial-gradient(700px 480px at 10% 90%, rgba(245,0,0,0.08), transparent 60%); pointer-events: none; }
  .scan-hero .container { position: relative; z-index: 2; }
  .scan-hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
  .scan-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FF6B6B; }
  .scan-hero .eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--red); border-radius: 2px; }
  .scan-hero h1 { font-family: var(--display); font-size: clamp(34px, 3.9vw, 54px); line-height: 1.06; letter-spacing: -0.02em; margin: 18px 0 20px; }
  .scan-hero h1 .red { color: var(--red); }
  .scan-hero p.lede { font-size: 1.16rem; line-height: 1.65; color: rgba(255,255,255,0.82); max-width: 44ch; }
  .scan-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; font-size: 14px; color: rgba(255,255,255,0.6); }
  .scan-trust span::before { content: '✓'; color: var(--red); font-weight: 700; margin-right: 7px; }
  .engine-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 24px; }
  .engine-logos span { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.75); }
  .engine-logos svg { width: 19px; height: 19px; fill: rgba(255,255,255,0.9); flex-shrink: 0; }

  /* ── The scan card (form ↔ progress) ────────────────── */
  .scan-card { background: var(--white); color: var(--black); border-radius: var(--radius-lg); padding: 34px 34px 30px; box-shadow: 0 30px 80px rgba(0,0,0,0.45); position: relative; }
  .free-flag { position: absolute; top: -12px; right: 26px; background: var(--white); color: var(--red); font-weight: 700; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; padding: 5px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--red); }
  .scan-card h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.01em; margin-bottom: 4px; }
  .scan-card h2 .red, .gate h3 .red { color: var(--red); }
  .scan-card .sub { font-size: 14px; color: var(--grey-500); margin-bottom: 20px; }
  .scan-field { margin-bottom: 14px; }
  .scan-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--grey-700); }
  .scan-field input { width: 100%; font: inherit; font-size: 15px; padding: 13px 16px; border: 1.5px solid var(--grey-200); border-radius: 12px; background: var(--off-white); transition: border-color .15s, background .15s; }
  .scan-field input:focus { outline: none; border-color: var(--red); background: var(--white); }
  .scan-field .hint { font-size: 12px; color: var(--grey-500); margin-top: 4px; }
  .scan-card .btn { width: 100%; margin-top: 6px; padding: 16px 32px; font-size: 16px; }
  .scan-fineprint { font-size: 12px; color: var(--grey-500); text-align: center; margin-top: 14px; line-height: 1.55; }
  .scan-error { display: none; background: #FDECEC; border: 1px solid #F5B5B5; color: #8E1414; font-size: 14px; border-radius: 10px; padding: 11px 14px; margin-bottom: 14px; line-height: 1.5; }
  .scan-error.show { display: block; }
  .hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

  /* progress view */
  #progressView { display: none; }
  .prog-title { font-family: var(--display); font-size: 22px; margin-bottom: 2px; }
  .prog-sub { font-size: 14px; color: var(--grey-500); margin-bottom: 18px; min-height: 21px; }
  .prog-track { height: 10px; background: var(--grey-100); border-radius: 6px; overflow: hidden; margin-bottom: 22px; }
  .prog-fill { height: 100%; width: 2%; background: var(--red); border-radius: 6px; transition: width .8s cubic-bezier(.22,1,.36,1); }
  .prog-engines { display: flex; flex-direction: column; gap: 0; }
  .prog-row { display: flex; align-items: center; gap: 12px; padding: 11px 2px; border-top: 1px solid var(--grey-100); font-size: 15px; }
  .prog-row:first-child { border-top: 0; }
  .prog-row .pname { font-weight: 600; flex: 1; }
  .prog-row .pstate { font-size: 13px; color: var(--grey-500); font-variant-numeric: tabular-nums; }
  .prog-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--grey-200); flex-shrink: 0; }
  .prog-row.working .prog-dot { background: var(--red); animation: pulse 1.1s ease-in-out infinite; }
  .prog-row.done .prog-dot { background: #1B9E57; }
  .prog-row.done .pstate { color: #1B9E57; font-weight: 600; }
  @keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
  .prog-note { font-size: 12px; color: var(--grey-500); margin-top: 16px; line-height: 1.55; }

  /* ── Section rhythm ─────────────────────────────────── */
  .scan-sec { padding: 88px 0; }
  .scan-sec.alt { background: var(--off-white); }
  .scan-lede { font-size: 1.15rem; line-height: 1.7; color: var(--grey-700); max-width: 62ch; }

  /* ── Verdict ────────────────────────────────────────── */
  #verdictSec { display: none; padding: 88px 0 72px; }
  .verdict-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 44px; }
  .score-card { border: 1px solid var(--grey-200); border-radius: var(--radius-lg); background: var(--white); padding: 38px 36px; display: flex; gap: 30px; align-items: center; box-shadow: 0 12px 34px rgba(0,0,0,0.05); }
  .dial { width: 148px; height: 148px; flex-shrink: 0; }
  .dial svg { width: 100%; height: 100%; transform: rotate(-90deg); }
  .dial .track { fill: none; stroke: var(--grey-100); stroke-width: 11; }
  .dial .fill { fill: none; stroke: var(--red); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 339.3; stroke-dashoffset: 339.3; transition: stroke-dashoffset 1.4s cubic-bezier(.22,1,.36,1); }
  .dial .fill.ok { stroke: #1B9E57; }
  .dial .fill.mid { stroke: #D97706; }
  .dial-num { font-family: var(--display); font-weight: 800; font-size: 40px; letter-spacing: -0.02em; }
  .dial-num small { font-size: 17px; color: var(--grey-500); font-weight: 600; }
  .dial-wrap { position: relative; }
  .dial-center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
  .score-meta .slabel { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-500); }
  .score-meta .stier { font-family: var(--display); font-size: 26px; font-weight: 700; margin: 6px 0 6px; }
  .score-meta .stier.bad { color: var(--red); }
  .score-meta .stier.mid { color: #D97706; }
  .score-meta .stier.good { color: #1B9E57; }
  .score-meta .sline { font-size: 15px; color: var(--grey-700); line-height: 1.55; max-width: 30ch; }
  .verdict-teaser { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
  .teaser-chip { background: var(--off-white); border: 1px solid var(--grey-200); border-radius: var(--radius-pill); padding: 9px 18px; font-size: 14px; font-weight: 600; }
  .teaser-chip b { color: var(--red); }
  .honesty { font-size: 13px; color: var(--grey-500); margin-top: 22px; max-width: 70ch; }

  /* ── Email gate ─────────────────────────────────────── */
  .gate { margin-top: 48px; border-radius: var(--radius-lg); background: var(--black); color: var(--white); padding: 46px 48px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; overflow: hidden; }
  .gate::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 90% 0%, rgba(245,0,0,0.22), transparent 60%); pointer-events: none; }
  .gate > div { position: relative; }
  .gate h3 { font-family: var(--display); font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.01em; margin-bottom: 12px; }
  .gate ul { list-style: none; display: flex; flex-direction: column; gap: 9px; font-size: 15px; color: rgba(255,255,255,0.82); }
  .gate ul li::before { content: '✓'; color: var(--red); font-weight: 700; margin-right: 9px; }
  .gate .scan-field label { color: rgba(255,255,255,0.7); }
  .gate .scan-field input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--white); }
  .gate .scan-field input::placeholder { color: rgba(255,255,255,0.35); }
  .gate .scan-field input:focus { background: rgba(255,255,255,0.12); border-color: var(--red); }
  .gate .btn { width: 100%; margin-top: 4px; }
  .gate .scan-fineprint { color: rgba(255,255,255,0.45); }
  .gate .scan-error { background: rgba(245,0,0,0.15); border-color: rgba(245,0,0,0.4); color: #FFB4B4; }

  /* ── Full breakdown ─────────────────────────────────── */
  #resultsSec { display: none; }
  .res-block { margin-top: 56px; }
  .res-block > h3 { font-family: var(--display); font-size: clamp(24px, 2.8vw, 34px); letter-spacing: -0.01em; margin-bottom: 8px; }
  .res-block > .bsub { font-size: 15px; color: var(--grey-500); margin-bottom: 24px; max-width: 62ch; }
  .comp-chips { display: flex; flex-wrap: wrap; gap: 10px; }
  .comp-chip { background: var(--white); border: 1px solid var(--grey-200); border-radius: var(--radius-pill); padding: 10px 20px; font-size: 15px; font-weight: 600; }
  .comp-chip small { color: var(--grey-500); font-weight: 500; }
  .engine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .engine-card { border: 1px solid var(--grey-200); border-radius: var(--radius-md); background: var(--white); padding: 26px 28px; }
  .engine-card h4 { font-family: var(--display); font-size: 19px; margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; }
  .engine-card h4 .esum { font-size: 13px; font-weight: 600; color: var(--grey-500); }
  .qa { border-top: 1px solid var(--grey-100); padding: 13px 0; }
  .qa .qrow { display: flex; align-items: flex-start; gap: 12px; }
  .qa .qtext { flex: 1; font-size: 14px; line-height: 1.5; color: var(--grey-700); }
  .vchip { flex-shrink: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: var(--radius-pill); padding: 4px 12px; }
  .vchip.named { background: #E7F6EE; color: #14713D; }
  .vchip.mentioned { background: #FDF1DF; color: #92580A; }
  .vchip.absent { background: #FDECEC; color: #A31212; }
  .vchip.na { background: var(--grey-100); color: var(--grey-500); }
  .qa details { margin-top: 8px; }
  .qa summary { font-size: 13px; font-weight: 600; color: var(--red); cursor: pointer; list-style: none; }
  .qa summary::after { content: ' +'; }
  .qa details[open] summary::after { content: ' −'; }
  .qa .answer { font-size: 13.5px; line-height: 1.62; color: var(--grey-700); background: var(--off-white); border-radius: 10px; padding: 14px 16px; margin-top: 8px; }
  .qa .answer > :first-child { margin-top: 0; }
  .qa .answer > :last-child { margin-bottom: 0; }
  .qa .answer p { margin: 0 0 10px; }
  .qa .answer ul, .qa .answer ol { margin: 0 0 10px; padding-left: 20px; }
  .qa .answer li { margin: 0 0 4px; }
  .qa .answer li::marker { color: var(--grey-500); }
  .qa .answer .md-h { font-family: var(--display); font-weight: 700; color: var(--black); line-height: 1.25; margin: 14px 0 6px; }
  .qa .answer h4.md-h { font-size: 15px; } .qa .answer h5.md-h { font-size: 14px; } .qa .answer h6.md-h { font-size: 13.5px; }
  .qa .answer strong { color: var(--black); font-weight: 700; }
  .qa .answer em { font-style: italic; }
  .qa .answer a { color: var(--red); text-decoration: underline; text-underline-offset: 2px; word-break: break-word; }
  .qa .answer code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; background: var(--grey-100); border-radius: 5px; padding: 1px 5px; }
  .qa .answer pre { background: #0A0A0A; color: #F7F6F4; border-radius: 8px; padding: 12px 14px; overflow-x: auto; margin: 0 0 10px; }
  .qa .answer pre code { background: none; color: inherit; padding: 0; }
  .qa .answer blockquote { margin: 0 0 10px; padding: 2px 0 2px 12px; border-left: 3px solid var(--grey-300); color: var(--grey-500); }
  .qa .answer hr { border: 0; border-top: 1px solid var(--grey-200); margin: 12px 0; }
  .qa .whoinstead { font-size: 13px; color: var(--grey-500); margin-top: 7px; }
  .qa .whoinstead b { color: var(--black); }

  .ready-list { border: 1px solid var(--grey-200); border-radius: var(--radius-md); background: var(--white); overflow: hidden; }
  .ready-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 24px; border-top: 1px solid var(--grey-100); }
  .ready-row:first-child { border-top: 0; }
  .ricon { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; margin-top: 1px; }
  .ricon.pass { background: #E7F6EE; color: #14713D; }
  .ricon.partial { background: #FDF1DF; color: #92580A; }
  .ricon.fail { background: #FDECEC; color: #A31212; }
  .ricon.skip { background: #EFEDEA; color: #8A8784; }
  .ready-row .rlabel { font-weight: 600; font-size: 15px; }
  .ready-row .rdetail { font-size: 13.5px; color: var(--grey-500); line-height: 1.5; }
  .ready-row .rfix { font-size: 13.5px; color: var(--grey-700); line-height: 1.5; margin-top: 4px; }
  .ready-row .rfix b { color: var(--red); }
  .ready-row .rpts { margin-left: auto; flex-shrink: 0; font-family: var(--display); font-weight: 700; font-size: 14px; color: var(--grey-500); font-variant-numeric: tabular-nums; }

  .pilot { margin-top: 64px; border-radius: var(--radius-lg); background: var(--black); color: var(--white); padding: 52px 54px; position: relative; overflow: hidden; }
  .pilot::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 340px at 85% 100%, rgba(245,0,0,0.25), transparent 60%); pointer-events: none; }
  .pilot > * { position: relative; }
  .pilot .peyebrow { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #FF6B6B; margin-bottom: 12px; }
  .pilot h3 { font-family: var(--display); font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.01em; margin-bottom: 14px; max-width: 22ch; }
  .pilot p { font-size: 16px; color: rgba(255,255,255,0.78); max-width: 58ch; margin-bottom: 24px; }
  .pilot .price { font-family: var(--display); font-weight: 800; font-size: 20px; margin-bottom: 24px; }
  .pilot .price small { font-size: 14px; color: rgba(255,255,255,0.55); font-weight: 500; }

  /* ── How it works / FAQ ─────────────────────────────── */
  .how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
  .how-card { border: 1px solid var(--grey-200); border-radius: var(--radius-md); background: var(--white); padding: 30px 30px 26px; }
  .how-card .n { font-family: var(--display); font-weight: 800; font-size: 15px; color: var(--white); background: var(--red); width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
  .how-card h3 { font-family: var(--display); font-size: 19px; margin-bottom: 8px; }
  .how-card p { font-size: 14.5px; color: var(--grey-700); line-height: 1.65; }

  /* ── Demo ribbon ────────────────────────────────────── */
  #demoRibbon { display: none; position: fixed; z-index: 90; top: 112px; right: -46px; transform: rotate(38deg); background: var(--red); color: var(--white); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 8px 60px; box-shadow: 0 6px 20px rgba(0,0,0,0.25); pointer-events: none; }

  /* ── Responsive ─────────────────────────────────────── */
  @media (max-width: 960px) {
    .scan-hero { padding: 120px 0 64px; }
    .scan-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .engine-logos { gap: 12px 20px; }
    .engine-logos span { font-size: 13px; }
    .verdict-grid, .engine-grid { grid-template-columns: 1fr; }
    .gate { grid-template-columns: 1fr; padding: 36px 30px; gap: 28px; }
    .how { grid-template-columns: 1fr; }
    .score-card { padding: 28px 24px; gap: 20px; }
    .pilot { padding: 38px 30px; }
  }
