/* ========================================================================
   FRAUD PREVENTION PAGE – CSS Variables & Scoped Styles
   ======================================================================== */
:root {
  --fp-theme: #159588;
  --fp-green: #00B78C;
  --fp-text: #191C1E;
  --fp-border: #DDDFE0;
  --fp-muted: #9c9c9c;
  --fp-bg: #fff;
  --fp-section-bg: #f9f9fa;
  --fp-mint: #E1F3EE;
  --fp-gradient: linear-gradient(0deg, #00a8b9, #0eb2b1);
  --fp-max-w: 1250px;
  --fp-pad: 40px;
  --fp-pad-m: 20px;
  --fp-radius: 10px;
  --fp-radius-btn: 100px;
  --fp-shadow: 10px 11px 20px 0 #f3f3f3;
}

/* ========================================================================
   LAYOUT
   ======================================================================== */
.fp-wrap {
  max-width: var(--fp-max-w);
  margin: 0 auto;
  padding-left: var(--fp-pad);
  padding-right: var(--fp-pad);
  width: 100%;
}

/* ========================================================================
   COMPONENTS
   ======================================================================== */

/* Eyebrow */
.fp-eye {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fp-theme);
  font-family: 'Avenir', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 10px;
}
.fp-eye::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fp-green);
}

/* Lead text */
.fp-lead {
  font-family: 'Avenir', sans-serif;
  font-size: 16px;
  color: var(--fp-muted);
  line-height: 1.55;
  max-width: 600px;
}
.fp-mut { color: var(--fp-muted); font-family: 'Avenir', sans-serif; }

/* Buttons */
.fp-btn-pri {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  border: none;
  position: relative;
  transition: all .5s;
  background-image: var(--fp-gradient);
  border-radius: var(--fp-radius-btn);
  font-size: 14px;
  color: #fff!important;
  padding: 12px 28px;
  min-width: 160px;
  cursor: pointer;
  line-height: 1.3;
  font-family: 'Proxima', sans-serif;
}
.fp-btn-pri::before {
  content: "";
  position: absolute;
  inset: 2px;
  background: none;
  border-radius: 50px;
  transition: all .5s;
}
.fp-btn-pri:hover::before { background: #fff; }
.fp-btn-pri:hover { color: var(--fp-text)!important; }
.fp-btn-pri span { position: relative; z-index: 2; }

.fp-btn-sec {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  border: 2px solid var(--fp-border);
  background: #fff;
  border-radius: var(--fp-radius-btn);
  font-size: 14px;
  color: var(--fp-text);
  padding: 10px 28px;
  min-width: 160px;
  cursor: pointer;
  line-height: 1.3;
  transition: all .3s;
  font-family: 'Proxima', sans-serif;
}
.fp-btn-sec:hover {
  border-color: var(--fp-theme);
  color: var(--fp-theme);
}

/* ========================================================================
   HERO
   ======================================================================== */
.fp-hero-bar {
  height: 5px;
  background-image: var(--fp-gradient);
}
.s-fp-hero {
  background: var(--fp-mint);
  padding: 70px 0 80px;
  text-align: center;
}
.s-fp-hero .fp-eye { justify-content: center; }
.s-fp-hero h1 {
  max-width: 750px;
  margin: 0 auto 18px;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--fp-text);
}
.s-fp-hero .fp-lead {
  max-width: 600px;
  margin: 0 auto 32px;
  text-align: center;
}
.fp-hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.fp-hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.fp-hero-stat { text-align: center; }
.fp-hero-stat-num {
  font-size: 36px;
  font-weight: 300;
  color: var(--fp-green);
  letter-spacing: -1px;
  line-height: 1;
}
.fp-hero-stat-label {
  font-family: 'Avenir', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--fp-muted);
  margin-top: 6px;
}

/* ========================================================================
   SCANNER
   ======================================================================== */
.s-fp-scanner {
  padding: 80px 0;
}
.fp-section-head {
  max-width: 700px;
  margin-bottom: 36px;
}
.fp-section-head h2 {
  margin-bottom: 12px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--fp-text);
}

.fp-scanner-box {
  background: var(--fp-section-bg);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  display: grid;
  grid-template-columns: 1fr 340px;
  overflow: hidden;
}
.fp-scanner-panel {
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.fp-scanner-phone-col {
  background: var(--fp-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 20px;
}

/* Phone */
.fp-phone {
  width: 280px;
  background: #333;
  border-radius: 28px;
  padding: 8px;
}
.fp-screen {
  background: #fff;
  border-radius: 20px;
  min-height: 410px;
  overflow: hidden;
}
.fp-status-bar {
  height: 28px;
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 0;
  font-size: 9px;
  font-weight: 700;
}
.fp-chat-head {
  padding: 10px 14px;
  border-bottom: 1px solid #edf1f0;
  display: flex;
  gap: 9px;
  align-items: center;
}
.fp-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--fp-mint);
  color: var(--fp-theme);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 11px;
}
.fp-chat-head b { font-size: 12px; display: block; }
.fp-chat-head small {
  font-size: 9px;
  color: var(--fp-muted);
  font-family: 'Avenir', sans-serif;
  font-weight: 400;
}
.fp-conversation { padding: 14px 12px; }
.fp-bubble {
  font-family: 'Avenir', sans-serif;
  font-size: 11.5px;
  line-height: 1.5;
  background: #f1f5f4;
  border-radius: 4px 14px 14px 14px;
  padding: 11px;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
}
.fp-tap {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: 0;
  cursor: pointer;
  text-align: left;
  display: inline;
  white-space: normal;
  line-height: inherit;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.fp-tap:hover { background: #e4efed; border-radius: 2px; }
.fp-tap.found {
  background: #ffe5b7;
  color: #6f4307;
  box-shadow: 0 0 0 1px #e8b75f;
  border-radius: 2px;
  padding: 0 1px;
}
.fp-tap.link {
  color: var(--fp-theme);
  text-decoration: underline;
  text-decoration-style: dotted;
}
.fp-msg-time {
  font-size: 8px;
  color: #8b9999;
  text-align: right;
  margin-top: 5px;
}
.fp-hint {
  font-family: 'Avenir', sans-serif;
  font-size: 10px;
  color: var(--fp-muted);
  text-align: center;
  padding: 10px 6px 0;
}
.fp-hint-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fp-green);
  margin-right: 4px;
}

/* Panel controls */
.fp-counter {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--fp-border);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.fp-counter-title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.fp-scenario {
  font-family: 'Avenir', sans-serif;
  font-size: 12px;
  color: var(--fp-muted);
  margin-top: 2px;
}
.fp-score {
  font-size: 12px;
  font-weight: 700;
  color: var(--fp-theme);
  background: var(--fp-mint);
  border-radius: var(--fp-radius-btn);
  padding: 6px 12px;
  white-space: nowrap;
}
.fp-signals { display: grid; gap: 8px; }
.fp-signal {
  border: 1px solid var(--fp-border);
  background: #fff;
  border-radius: var(--fp-radius);
  padding: 12px;
  display: flex;
  gap: 10px;
  opacity: .35;
  transition: all .25s ease;
}
.fp-signal.on {
  opacity: 1;
  border-color: var(--fp-green);
  background: var(--fp-mint);
}
.fp-mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--fp-section-bg);
  display: grid;
  place-items: center;
  font-weight: 900;
  flex: none;
  color: var(--fp-muted);
  font-size: 12px;
}
.fp-signal.on .fp-mark {
  background: var(--fp-green);
  color: #fff;
}
.fp-signal b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 2px;
}
.fp-signal span {
  display: block;
  font-family: 'Avenir', sans-serif;
  font-size: 11px;
  line-height: 1.45;
  color: var(--fp-muted);
}
.fp-complete {
  display: none;
  margin-top: 10px;
  border-radius: var(--fp-radius);
  padding: 14px;
  background: var(--fp-mint);
  font-family: 'Avenir', sans-serif;
  font-size: 13px;
  line-height: 1.5;
  border-left: 3px solid var(--fp-green);
}
.fp-complete.show { display: block; }
.fp-complete b { font-weight: 700; }
.fp-scan-actions {
  margin-top: auto;
  padding-top: 16px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fp-victim-link {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--fp-border);
  font-family: 'Avenir', sans-serif;
  font-size: 12px;
  color: var(--fp-muted);
}
.fp-victim-link button {
  border: 0;
  background: none;
  color: var(--fp-theme);
  font-family: 'Avenir', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

/* ========================================================================
   FRAUD TYPES
   ======================================================================== */
.s-fp-frauds {
  background: var(--fp-section-bg);
  border-top: 1px solid var(--fp-border);
  padding: 80px 0;
}
.fp-fraud-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.fp-fraud-card {
  border: 1px solid var(--fp-border);
  background: #fff;
  border-radius: var(--fp-radius);
  padding: 24px;
  text-align: left;
  color: var(--fp-text);
  cursor: pointer;
  transition: all .3s;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-family: 'Proxima', sans-serif;
}
.fp-fraud-card:hover {
  border-color: var(--fp-theme);
  box-shadow: var(--fp-shadow);
}
.fp-fraud-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fp-mint);
  display: grid;
  place-items: center;
  font-size: 20px;
  flex: none;
}
.fp-fraud-card strong {
  display: block;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 4px;
  line-height: 1.2;
}
.fp-fraud-card p {
  font-size: 13px;
  color: var(--fp-muted);
  line-height: 1.5;
}

/* ========================================================================
   RULES
   ======================================================================== */
.s-fp-rules { padding: 80px 0; }
.fp-rules-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 20px;
}
.fp-rules-header h2 {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--fp-text);
}
.fp-rules-header p { margin: 0; }
.fp-rule-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.fp-rule-card {
  background: #fff;
  color: var(--fp-text);
  border: 1px solid var(--fp-theme);
  border-radius: var(--fp-radius);
  padding: 24px 20px;
  position: relative;
  overflow: hidden;
}
.fp-rule-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-image: var(--fp-gradient);
}
.fp-rule-num {
  font-family: 'Avenir', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--fp-muted);
  margin-bottom: 14px;
}
.fp-rule-icon { margin-bottom: 12px; }
.fp-rule-card b {
  display: block;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 8px;
  line-height: 1.3;
}
.fp-rule-card span {
  font-family: 'Avenir', sans-serif;
  font-size: 12px;
  color: var(--fp-muted);
  line-height: 1.5;
}

/* ========================================================================
   CTA
   ======================================================================== */
.s-fp-cta {
  background: var(--fp-mint);
  padding: 50px 0;
}
.fp-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.fp-cta-inner h2 {
  margin-bottom: 6px;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  text-transform: uppercase;
  color: var(--fp-text);
}

/* ========================================================================
   MODALS
   ======================================================================== */
.fp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.5);
  padding: 24px 12px;
  align-items: center;
  justify-content: center;
}
.fp-overlay.show { display: flex; }
.fp-modal {
  width: min(640px, 100%);
  background: #fff;
  border-radius: var(--fp-radius);
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,.2);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}
.fp-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-image: var(--fp-gradient);
  border-radius: var(--fp-radius) var(--fp-radius) 0 0;
}
.fp-modal-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.fp-modal-icon {
  width: 44px;
  height: 44px;
  background: var(--fp-mint);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 20px;
  margin-bottom: 10px;
  flex: none;
}
.fp-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--fp-border);
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 0;
  justify-content: center;
  transition: all .3s;
}
.fp-modal-close:hover { border-color: var(--fp-text); }
.fp-modal h3 {
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--fp-text);
}
.fp-modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.fp-modal-box {
  border: 1px solid var(--fp-border);
  background: var(--fp-section-bg);
  border-radius: var(--fp-radius);
  padding: 16px;
  font-family: 'Avenir', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.fp-modal-box b {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-family: 'Proxima', sans-serif;
}
.fp-sign-item {
  font-family: 'Avenir', sans-serif;
  font-size: 12px;
  color: var(--fp-muted);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.fp-sign-item::before {
  content: "!";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--fp-mint);
  color: var(--fp-theme);
  font-size: 10px;
  font-weight: 700;
  flex: none;
}
.fp-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.fp-help-item {
  background: #fff;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: 16px;
  font-family: 'Avenir', sans-serif;
  font-size: 13px;
  line-height: 1.5;
}
.fp-help-item b {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: 'Proxima', sans-serif;
}

/* ========================================================================
   RESPONSIVE
   ======================================================================== */
@media (max-width: 1124px) {
  .fp-rule-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .fp-scanner-box { grid-template-columns: 1fr; }
  .fp-scanner-phone-col { order: -1; padding: 24px; }
  .fp-scanner-panel { min-height: 0; }
  .fp-scan-actions { margin-top: 16px; }
}

@media (max-width: 768px) {
  .fp-wrap { padding-left: var(--fp-pad-m); padding-right: var(--fp-pad-m); }
  .s-fp-hero h1 { font-size: 30px; }
  .fp-section-head h2,
  .fp-rules-header h2,
  .fp-cta-inner h2 { font-size: 28px; line-height: 1.1; }
  .s-fp-hero { padding: 50px 0 60px; }
  .fp-hero-stats { gap: 24px; }
  .fp-hero-stat-num { font-size: 28px; }
  .fp-fraud-grid { grid-template-columns: 1fr; }
  .fp-fraud-card { padding: 18px; }
  .fp-rule-grid { grid-template-columns: 1fr 1fr; }
  .fp-rules-header { flex-direction: column; align-items: flex-start; }
  .fp-cta-inner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
  .fp-modal-grid { grid-template-columns: 1fr; }
}

@media (max-width: 570px) {
  .s-fp-hero h1 { font-size: 26px; }
  .fp-section-head h2,
  .fp-rules-header h2,
  .fp-cta-inner h2 { font-size: 24px; }
  .s-fp-scanner, .s-fp-frauds, .s-fp-rules { padding: 50px 0; }
  .s-fp-hero { padding: 40px 0 50px; }
  .fp-scanner-panel { padding: 20px; }
  .fp-scanner-phone-col { padding: 20px; }
  .fp-phone { width: min(280px, 100%); }
  .fp-rule-grid { grid-template-columns: 1fr; }
  .fp-hero-stats { flex-direction: column; gap: 16px; }
}

@media (max-width: 480px) {
  .fp-modal { padding: 20px; }
  .fp-btn-pri, .fp-btn-sec { width: 100%; min-width: 0; }
  .fp-rule-card { padding: 18px 16px; }
}

@media (max-width: 375px) {
  .s-fp-hero h1 { font-size: 24px; }
  .fp-section-head h2,
  .fp-rules-header h2,
  .fp-cta-inner h2 { font-size: 22px; }
}
