/* 3rd-i · /safety, the safety features page
   -----------------------------------------
   Rebuilt 2026-08-27 from the client's GTM screen renders. Reuses the /product
   feature ladder (3rdi-key-safety.css, ksf-) for the alternating rows and the
   AgentTexts section (agt-); everything else here. Token-only, both themes.
   Prefix: sfp- */

/* ---- the index rail under the hero -------------------------------------- */
.sfp-index { position: relative; z-index: 2; margin-top: clamp(-14px, -1vw, -6px); }
.sfp-index-rail {
  list-style: none;
  margin: 0;
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  background: var(--glass);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: var(--soft-shadow);
}
.sfp-index-rail::-webkit-scrollbar { display: none; }
.sfp-index-stop {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 10px;
  border-radius: var(--pill);
  color: var(--dim);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}
.sfp-index-stop:hover { background: var(--panel-2); color: var(--text); }
.sfp-index-n {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding-inline: 5px;
  border-radius: 8px;
  background: var(--grad);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* ---- rhythm ------------------------------------------------------------- */
.sfp-sec .ret-head { margin-bottom: clamp(30px, 4.4vw, 52px); }
.sfp-row { margin-top: clamp(40px, 6vw, 72px); }

/* ---- three step strips (connect, SOS for a friend) ---------------------- */
.sfp-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  position: relative;
}
.sfp-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(20px, 2.6vw, 30px) clamp(16px, 2vw, 24px) clamp(22px, 2.6vw, 30px);
  background: var(--panel);
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  box-shadow: var(--soft-shadow);
}
.sfp-step img {
  display: block;
  width: 100%;
  max-width: 230px;
  height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 30px rgba(20, 30, 70, 0.18));
}
.sfp-step-n {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.sfp-step h3 { margin: 0 0 6px; font-size: 19px; letter-spacing: -0.015em; }
.sfp-step p { margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.55; max-width: 30ch; }

/* ---- note pair under the connect steps ----------------------------------- */
.sfp-note-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin-top: clamp(18px, 2.4vw, 26px);
}
.sfp-note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0;
  padding: 18px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-hi);
  background: var(--panel-2);
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.55;
}
.sfp-note b { color: var(--text); }
.sfp-note svg { flex: none; width: 22px; height: 22px; color: var(--acc-sky); margin-top: 1px; }

/* ---- critical alerts ------------------------------------------------------ */
.sfp-critical {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(26px, 5vw, 70px);
  align-items: center;
  padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3.4vw, 48px);
  border: 1px solid var(--line-hi);
  border-radius: var(--r-lg);
  background: linear-gradient(160deg, color-mix(in srgb, var(--alarm) 9%, transparent), transparent 42%), var(--panel);
  box-shadow: var(--soft-shadow);
}
.sfp-critical-shot { display: flex; justify-content: center; }
.sfp-critical-shot img {
  display: block;
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 26px 44px rgba(20, 30, 70, 0.24));
}
.sfp-alert-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line-hi);
  background: var(--panel-2);
  box-shadow: var(--soft-shadow);
  margin-bottom: 22px;
  max-width: 460px;
}
.sfp-alert-ic img { display: block; width: 44px; height: 44px; border-radius: 11px; }
.sfp-alert-txt b { display: block; font-size: 14.5px; letter-spacing: -0.01em; }
.sfp-alert-txt small { display: block; color: var(--dim); font-size: 12.5px; margin-top: 2px; }
.sfp-alert-crit {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--alarm);
  color: #fff;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  vertical-align: 1px;
}
.sfp-checks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.sfp-checks li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-hi);
  background: var(--panel-2);
  color: var(--dim);
  font-size: 14.5px;
  line-height: 1.5;
}
.sfp-checks li b { color: var(--text); }
.sfp-checks li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23000'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.sfp-mini {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 22px 0 0;
}
.sfp-mini img { display: block; width: 92px; height: auto; flex: none; filter: drop-shadow(0 12px 20px rgba(20, 30, 70, 0.18)); }
.sfp-mini figcaption { color: var(--dim); font-size: 14px; line-height: 1.5; }

/* ---- two phones side by side inside a ksf-row media column --------------- */
.sfp-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); align-items: center; }
.sfp-pair img { max-width: 100%; }
.sfp-pair > img:first-child { transform: translateY(14px); }
.sfp-pair .ksf-screen { max-width: 100%; }

/* ---- trio + quad galleries ----------------------------------------------- */
.sfp-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: end;
}
.sfp-trio-item,
.sfp-quad-item,
.sfp-card {
  margin: 0;
  padding: clamp(18px, 2.2vw, 26px);
  background: var(--panel);
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  box-shadow: var(--soft-shadow);
  text-align: center;
}
.sfp-trio-item img,
.sfp-quad-item img,
.sfp-card img {
  display: block;
  width: 100%;
  max-width: 240px;
  height: auto;
  margin: 0 auto 16px;
  filter: drop-shadow(0 18px 30px rgba(20, 30, 70, 0.18));
}
.sfp-trio-item--tall img { max-width: 268px; }
.sfp-trio-item figcaption b,
.sfp-card h3 { display: block; margin: 0 0 4px; font-size: 17px; letter-spacing: -0.015em; color: var(--text); }
.sfp-trio-item figcaption span,
.sfp-card p { display: block; margin: 0; color: var(--dim); font-size: 14.5px; line-height: 1.5; }
.sfp-quad {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 20px);
}
.sfp-quad-item img { max-width: 200px; }
.sfp-quad-item figcaption { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; }
.sfp-cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.sfp-card img { max-width: 220px; }
.sfp-card p { max-width: 34ch; margin-inline: auto; }

/* ---- tags + note ----------------------------------------------------------- */
.sfp-tags {
  list-style: none;
  margin: clamp(18px, 2.4vw, 26px) 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sfp-tags li {
  padding: 8px 14px;
  border-radius: var(--pill);
  border: 1px solid var(--line-hi);
  background: var(--panel-2);
  color: var(--text);
  font-size: 13.5px;
  font-weight: 500;
}
.sfp-sec .note--safety { margin-top: clamp(18px, 2.4vw, 26px); }
.sfp-sec .note--safety a { color: inherit; }

/* ---- close ------------------------------------------------------------------ */
.sfp-close .wrap > .rv { text-align: center; max-width: 760px; margin-inline: auto; }
.sfp-close h2 { margin-inline: auto; }
.sfp-close .lede { margin-inline: auto; }

/* ---- responsive --------------------------------------------------------------- */
@media (max-width: 980px) {
  .sfp-critical { grid-template-columns: 1fr; }
  .sfp-critical-shot img { max-width: 260px; }
  .sfp-quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .sfp-index { margin-top: 6px; }
  .sfp-index-rail {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; border-radius: var(--pill);
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent); mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
  .sfp-steps, .sfp-trio, .sfp-cards3, .sfp-note-row { grid-template-columns: 1fr; }
  .sfp-step img { max-width: 200px; }
  .sfp-trio-item--tall img { max-width: 240px; }
  .sfp-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sfp-mini img { width: 76px; }
}
@media (max-width: 460px) {
  .sfp-quad { gap: 10px; }
  .sfp-quad-item { padding: 14px 10px; }
  .sfp-quad-item img { max-width: 150px; margin-bottom: 12px; }
  .sfp-quad-item figcaption { font-size: 13px; }
}
