/*
  ════════════════════════════════════════════════════════════
  GETBULWARK HOMEPAGE — CSS ADDITIONS
  GAN Iteration 3 — Drop these into styles.css or a new
  <link> placed after /css/styles.css on index.html only.
  ════════════════════════════════════════════════════════════

  CHANGES:
  1. Pulsing threat dots (red = live threat, amber = warning)
  2. Animated score counter setup
  3. ICP grid hover-reveal risk overlay
  4. FAQ: grid-row animation (replaces max-height hack)
  5. Proof bar: high-signal stat layout
  6. Hero note: tightened style
*/

/* ── 1. THREAT DOT PULSE ── */
/* Red dots feel live — like something is actually wrong */
.dot-r {
  background: var(--red);
  animation: dotPulse 2.4s ease-in-out infinite;
}
.dot-a {
  animation: dotPulseAmber 3s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 57, 43, 0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(192, 57, 43, 0); }
}
@keyframes dotPulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 147, 13, 0.4); }
  50%       { box-shadow: 0 0 0 4px rgba(212, 147, 13, 0); }
}

/* Stagger dot pulses so they don't all fire together */
.fc-row:nth-child(2) .dot-r { animation-delay: 0.2s; }
.fc-row:nth-child(4) .dot-r { animation-delay: 0.6s; }
.fc-row:nth-child(7) .dot-r { animation-delay: 1.1s; }
.fc-row:nth-child(1) .dot-a { animation-delay: 0.4s; }
.fc-row:nth-child(5) .dot-a { animation-delay: 0.9s; }
.fc-row:nth-child(6) .dot-a { animation-delay: 1.4s; }


/* ── 2. SCORE COUNTER ── */
/* The score el gets a subtle flash when counter finishes */
.fc-score.counted {
  transition: color 0.3s ease;
  color: var(--amber); /* brief amber flash — 94 is bad */
}
/* Resets immediately in JS, this is just the keyframe target */


/* ── 3. ICP GRID HOVER-REVEAL ── */
/*
   Each .icp-item gets a hidden .icp-risk child that slides up
   on hover, revealing a sector-specific risk sentence.
   No JS needed — pure CSS slide-up.
*/
.icp-grid {
  /* Enable for hover reveal to work correctly */
}
.icp-item {
  position: relative;
  overflow: hidden;
  /* Keep existing styles — only adding position/overflow */
}
.icp-risk {
  position: absolute;
  inset: 0;
  background: rgba(30, 30, 36, 0.97);
  border-top: 1px solid rgba(58, 155, 110, 0.22);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: inherit;
}
.icp-item:hover .icp-risk {
  transform: translateY(0);
}
.icp-risk-label {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--amber);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}
.icp-risk p {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin: 0;
}
/* On touch devices, disable the hover reveal — show always */
@media (hover: none) {
  .icp-risk {
    position: relative;
    transform: none;
    background: rgba(58, 155, 110, 0.05);
    border-top: 1px solid rgba(58, 155, 110, 0.1);
    margin-top: 10px;
    inset: unset;
    border-radius: var(--r-xs);
    padding: 12px 14px;
  }
}


/* ── 4. FAQ — handled by styles.css + main.js, no override here ── */


/* ── 5. PROOF BAR — layout only, do NOT override font-size (styles.css owns that) ── */
.proof-i {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  line-height: 1.3;
}
.proof-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  max-width: none;
}
@media (max-width: 600px) {
  .proof-label { display: none; }
}


/* ── 6. "BEING NEW" BOX — REFRAMED ── */
/*
   Old box used defensive tone. New box is a plain guarantee.
   Class changed to .guarantee-note to avoid style bleed.
*/
.guarantee-note {
  margin-top: 28px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-left: 2px solid var(--green);
  border-radius: var(--r-sm);
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.guarantee-note p {
  font-size: 13.5px;
  color: var(--muted-light);
  line-height: 1.75;
  margin: 0;
}
.guarantee-note strong {
  color: var(--white);
  font-weight: 600;
}


/* ── 7. HERO H1 LINE-BREAK BALANCE ── */
/*
   The new H1 is two ideas — split visually.
   "has gaps you can't see." lives on line 1.
   "GetBulwark finds them." lands alone on line 2 — heavier weight.
*/
.hero h1 .h1-punch {
  display: block;
  font-size: clamp(42px, 5.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.8px;
}


/* ── 8. SCORE RING (report preview section) ── */
/*
   SVG arc that draws itself when scrolled into view.
   Add class="score-ring-svg" to the SVG element.
   circle.score-ring-fill gets stroke-dasharray set by JS.
*/
.score-ring-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.score-ring-svg circle {
  transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
}
.score-ring-label {
  position: absolute;
  text-align: center;
  pointer-events: none;
}
.score-ring-label .ring-score {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 26px;
  color: var(--green);
  line-height: 1;
  display: block;
}
.score-ring-label .ring-of {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
  letter-spacing: 0.3px;
}
