/* ==========================================================================
   Brand Protection page - hero.
   Loaded only by /brand-protection/. Every colour comes from the tokens in
   styles.css; the three status colours are the only additions and they only
   ever mean a state (copy found / suspicious / handled), never decoration.
   ========================================================================== */
.bp-hero {
  --bp-bad: #c0263a;   --bp-bad-bg: #fdecef;
  --bp-warn: #9a5b00;  --bp-warn-bg: #fff4e0;
  --bp-ok: #0b7a5a;    --bp-ok-bg: #e4f6ef;
  position: relative;
  overflow: clip;                 /* clip, not hidden: never breaks the sticky header */
  padding-top: var(--sp-7, 48px);
  padding-bottom: var(--sp-8, 64px);
  background:
    radial-gradient(60% 70% at 88% 18%, rgba(0, 122, 252, 0.13), transparent 70%),
    radial-gradient(40% 50% at 8% 100%, rgba(0, 24, 60, 0.05), transparent 70%),
    var(--surface);
}
/* a faint grid behind the visual - the "monitoring" texture */
.bp-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(0, 24, 60, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 24, 60, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(55% 75% at 78% 45%, #000 20%, transparent 75%);
          mask-image: radial-gradient(55% 75% at 78% 45%, #000 20%, transparent 75%);
}
.bp-hero .container { position: relative; }
.bp-hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: var(--sp-8, 64px); align-items: center; margin-top: var(--sp-5, 24px); }
.bp-hero-grid > * { min-width: 0; }
.bp-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.6rem); letter-spacing: -0.025em; line-height: 1.06; }
.bp-em {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bp-hero .lede { margin-top: var(--sp-5, 24px); }
.bp-hero .hero-actions { margin-top: var(--sp-6, 32px); }

.bp-points { list-style: none; padding: 0; margin: var(--sp-6, 32px) 0 0; display: grid; gap: 12px; }
.bp-points li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 0.95rem; line-height: 1.5; }
.bp-points li b { color: var(--text-1); font-weight: 600; }
.bp-points .bp-ico {
  flex: 0 0 28px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); color: var(--accent);
}
.bp-points .bp-ico svg { width: 15px; height: 15px; }

/* ---- the illustration ---------------------------------------------------- */
/* card on top; underneath it the "person" chip (tucked up over the card's edge)
   and the illustration note share one row, so neither can cover the other */
.bp-visual { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 16px; }
.bp-visual > .bp-card { grid-column: 1 / -1; }
.bp-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 30px 60px -20px rgba(0, 24, 60, 0.22), 0 2px 6px rgba(0, 24, 60, 0.05);
  padding: 18px;
}
.bp-card-head { display: flex; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--text-2); }
.bp-card-head b { color: var(--text-1); font-weight: 600; }
.bp-live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); box-shadow: 0 0 0 0 rgba(0, 122, 252, 0.5); animation: bpPulse 2s infinite; flex: 0 0 8px; }
.bp-example {
  margin-left: auto; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-3); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 3px 9px;
}

.bp-asset {
  position: relative; margin-top: 14px; height: 150px; border-radius: 12px; overflow: hidden;
  display: grid; place-items: center;
  background:
    linear-gradient(135deg, rgba(0, 112, 240, 0.08), rgba(0, 24, 60, 0.04)),
    repeating-linear-gradient(45deg, #f3f7fc 0 10px, #eef3fa 10px 20px);
  border: 1px solid var(--line);
}
.bp-asset svg { width: 92px; height: 92px; filter: drop-shadow(0 10px 18px rgba(0, 82, 204, 0.28)); }
.bp-asset-name {
  position: absolute; left: 10px; bottom: 10px; font-family: var(--font-mono); font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.92); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; color: var(--text-2);
}
/* the scanning beam */
.bp-beam {
  position: absolute; left: 0; right: 0; top: 0; height: 46px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(0, 122, 252, 0), rgba(0, 122, 252, 0.18) 70%, rgba(0, 122, 252, 0.7) 98%, rgba(0, 122, 252, 0));
  animation: bpBeam 2.8s cubic-bezier(.45, 0, .55, 1) infinite;
}

.bp-found-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 16px 2px 8px; }
.bp-found-head b { font-family: var(--font-display); font-size: 1.05rem; color: var(--text-1); }
.bp-found-head span { font-size: 0.75rem; color: var(--text-3); }
.bp-found { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-found li {
  display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  opacity: 0; transform: translateY(6px); animation: bpRow 0.5s ease forwards;
}
.bp-found li:nth-child(1) { animation-delay: 0.35s; }
.bp-found li:nth-child(2) { animation-delay: 0.6s; }
.bp-found li:nth-child(3) { animation-delay: 0.85s; }
.bp-found li:nth-child(4) { animation-delay: 1.1s; }
.bp-site-ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--surface-2); color: var(--text-2); }
.bp-site-ico svg { width: 15px; height: 15px; }
.bp-site { min-width: 0; }
.bp-site b { display: block; font-size: 0.84rem; color: var(--text-1); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-site span { display: block; font-size: 0.74rem; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-tag { font-size: 0.7rem; font-weight: 600; border-radius: 999px; padding: 4px 9px; white-space: nowrap; }
.bp-tag.bad { color: var(--bp-bad); background: var(--bp-bad-bg); }
.bp-tag.warn { color: var(--bp-warn); background: var(--bp-warn-bg); }
.bp-tag.ok { color: var(--bp-ok); background: var(--bp-ok-bg); }

/* floating "a person reviews it" chip */
.bp-chip {
  position: relative; margin: -20px 0 0 -22px; display: flex; align-items: center; gap: 10px;
  background: var(--text-1); color: #fff; border-radius: 12px; padding: 10px 14px; font-size: 0.8rem; line-height: 1.3;
  box-shadow: 0 16px 30px -10px rgba(0, 24, 60, 0.45); max-width: 250px;
}
.bp-chip .bp-chip-ico { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--gradient-brand); }
.bp-chip .bp-chip-ico svg { width: 14px; height: 14px; }
.bp-visual-note { margin: 0; font-size: 0.75rem; color: var(--text-3); text-align: right; }

@keyframes bpBeam { 0% { transform: translateY(-50px); } 100% { transform: translateY(154px); } }
@keyframes bpRow { to { opacity: 1; transform: none; } }
@keyframes bpPulse { 70% { box-shadow: 0 0 0 8px rgba(0, 122, 252, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 122, 252, 0); } }
@media (prefers-reduced-motion: reduce) {
  .bp-beam { animation: none; display: none; }
  .bp-live { animation: none; }
  .bp-found li { animation: none; opacity: 1; transform: none; }
}

@media (max-width: 1024px) {
  .bp-hero-grid { grid-template-columns: 1fr; gap: var(--sp-7, 48px); }
  .bp-visual { max-width: 520px; width: 100%; margin-inline: auto; }
  .bp-chip { margin-left: 12px; }
}
@media (max-width: 767px) {
  .bp-hero { padding-top: var(--sp-5, 24px); padding-bottom: var(--sp-7, 48px); }
  .bp-hero h1 { font-size: clamp(2rem, 9vw, 2.5rem); }
  .bp-hero .hero-actions { flex-direction: column; align-items: stretch; }
  .bp-hero .hero-actions .btn { width: 100%; }
  .bp-visual { grid-template-columns: 1fr; }
  .bp-chip { margin: 12px 0 0; max-width: none; }
  .bp-visual-note { margin-top: 10px; text-align: center; }
  .bp-asset { height: 128px; }
}
