/* 3rd-i · Key safety features (/product #features)
   ------------------------------------------------
   The feature ladder between the app sheet and the plans: emergency for a
   friend, Lock Screen widgets, critical alerts, precision location, and the
   RapidSOS stat band. Token-only, so light and dark both follow app.css.
   Prefix: ksf- */

.ksf-rows { display: grid; gap: clamp(56px, 9vw, 110px); margin-top: clamp(36px, 6vw, 64px); }

.ksf-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}
.ksf-row--flip .ksf-media { order: 2; }
.ksf-row--flip .ksf-copy { order: 1; }

.ksf-media { display: flex; justify-content: center; }
.ksf-media img { display: block; width: 100%; height: auto; }

/* Bezel-framed renders arrive transparent; cap their width so they read as a
   device, not a poster. */
.ksf-shot { max-width: 340px; }

/* A real iOS screenshot has square corners; give it the device's radius and a
   hairline so it reads as a phone. */
.ksf-screen {
  max-width: 300px;
  border-radius: 13.5% / 6.2%;
  overflow: hidden;
  border: 1px solid var(--line-hi);
  box-shadow: var(--soft-shadow);
}

/* The whole copy column is a CARD (Adam, 2026-08-19: kicker/h3/lead floated
   too); the points inside become inset panel-2 rows so surfaces layer instead
   of stacking identical cards. Scoped to .ksf-row so the critical band's copy
   (already inside a tinted panel) is untouched. */
.ksf-row { --accent: var(--acc-sky); }
.ksf-row > .ksf-copy {
  padding: clamp(22px, 3vw, 34px);
  background: linear-gradient(168deg, color-mix(in srgb, var(--accent) 8%, transparent), transparent 46%), var(--panel);
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  box-shadow: var(--soft-shadow);
}

.ksf-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent, var(--dim));
}
.ksf-kicker::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent, var(--dim));
}
/* the critical band and the RapidSOS band set their own kicker mood */
.ksf-critical { --accent: var(--alarm); }
.ksf-rsos { --accent: var(--royal); }
.ksf-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.ksf-copy .ksf-lead { margin: 0 0 18px; color: var(--dim); font-size: 17px; line-height: 1.6; }

/* Each point is a CARD, not floating text: panel surface, hairline, an icon
   chip in the corner (Adam, 2026-08-19, same steer as the alerts demo value
   points on 2026-08-11). */
.ksf-copy ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ksf-copy li {
  /* the li holds <b> + loose text nodes, so it must NOT be a grid container
     (anonymous text becomes its own grid item and stacks one word per line);
     the chip is absolutely positioned instead */
  position: relative;
  padding: 14px 16px 14px 61px;
  color: var(--dim);
  font-size: 15px;
  line-height: 1.55;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
/* Per-point icon chips, same language as the Go Live sheet's .app-row .chip
   (tinted square, sky icon) instead of uniform checks (Adam, 2026-08-19). */
.ksf-li-ic {
  position: absolute;
  left: 15px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent, var(--acc-sky)) 14%, transparent);
  color: var(--accent, var(--acc-sky));
}
.ksf-li-ic svg { width: 18px; height: 18px; }
.ksf-critical .ksf-li-ic { color: #f26a6a; }
.ksf-copy li b { color: var(--text); font-weight: 650; }

.ksf-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 16px 0 0;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-2);
}
.ksf-note a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Critical alerts: a wide band. Copy on the left, the emergency
   contact's lock screen moment mocked on the right. ---- */
.ksf-critical {
  margin-top: clamp(56px, 9vw, 110px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  background: linear-gradient(168deg, rgba(239, 59, 59, 0.09), var(--panel) 46%);
}

/* the contact's phone: DND on, and the alert punching through anyway */
.ksf-crit-stage { display: grid; gap: 10px; max-width: 420px; justify-self: center; width: 100%; }
.ksf-dnd {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}
.ksf-dnd svg { width: 13px; height: 13px; }
.ksf-crit-note {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px 14px 13px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--alarm) 38%, transparent);
  background: color-mix(in srgb, var(--alarm) 13%, var(--panel-2));
  box-shadow: var(--soft-shadow);
}
.ksf-crit-note img { width: 40px; height: 40px; border-radius: 10px; display: block; }
.ksf-crit-top { display: flex; align-items: baseline; gap: 8px; }
.ksf-crit-top b { font-size: 13px; letter-spacing: 0.02em; }
.ksf-crit-top span { margin-left: auto; font-size: 11.5px; color: var(--soft); white-space: nowrap; }
.ksf-crit-note p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: var(--text); }
.ksf-crit-note p small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--dim); }
.ksf-crit-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ff6c6c;
}
.ksf-crit-badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--alarm);
  animation: ksfPulse 1.4s ease-in-out infinite;
}
@keyframes ksfPulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .ksf-crit-badge i { animation: none; } }

/* ---- the two capability cards: discreet SOS + AI incident alerts ---- */
.ksf-cards {
  margin-top: clamp(56px, 9vw, 110px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ksf-card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  background: var(--panel);
}
.ksf-card-ic {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line-hi);
  background: var(--panel-2);
  color: var(--sky);
  margin-bottom: 16px;
}
.ksf-card-ic svg { width: 21px; height: 21px; }
.ksf-card h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.01em; }
.ksf-card p { margin: 0; color: var(--dim); font-size: 15px; line-height: 1.6; }
.ksf-card p + p { margin-top: 10px; }
.ksf-card a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* ---- RapidSOS: the connectivity partner stat band ---- */
.ksf-rsos {
  margin-top: clamp(56px, 9vw, 110px);
  padding: clamp(26px, 4vw, 48px);
  border: 1px solid var(--line-hi);
  border-radius: var(--r);
  background: linear-gradient(168deg, rgba(60, 158, 255, 0.1), var(--panel) 44%);
}
.ksf-rsos-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-bottom: 8px; }
.ksf-rsos-head .ksf-kicker { margin: 0; }
.ksf-rsos-logo {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 12px;
  background: #fff; /* fixed white chip in both themes, like .partner-strip */
  border: 1px solid var(--line-hi);
}
.ksf-rsos-logo img { display: block; width: 128px; height: auto; }
.ksf-rsos > h3 { margin: 6px 0 8px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -0.015em; }
.ksf-rsos > p { margin: 0 0 26px; color: var(--dim); font-size: 16px; line-height: 1.6; max-width: 640px; }
.ksf-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.ksf-stat {
  padding: 18px 18px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--panel-2);
}
.ksf-stat b {
  display: block;
  font-size: clamp(26px, 3vw, 34px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ksf-stat span { font-size: 13.5px; line-height: 1.45; color: var(--dim); display: block; }

/* ------------------------------------------------------------- phones */
@media (max-width: 860px) {
  .ksf-row { grid-template-columns: 1fr; gap: 26px; }
  .ksf-row--flip .ksf-media { order: 0; }
  .ksf-row--flip .ksf-copy { order: 0; }
  .ksf-shot { max-width: 250px; }
  .ksf-screen { max-width: 226px; }
  .ksf-copy h3 { font-size: 24px; }
  .ksf-critical { grid-template-columns: 1fr; }
  .ksf-crit-stage { max-width: 360px; }
  .ksf-cards { grid-template-columns: 1fr; }
  .ksf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
