/* Friend's date-safety page — "live radar" design (2026-10-04). The radar is
   the app's own visual language: rings in the sharer's colour (--accent, set
   from their gender) around their initial; the state recolours it. */
@font-face { font-family: Quicksand; font-weight: 500; font-display: swap; src: url(/fonts/Quicksand_500Medium.ttf) format('truetype'); }
@font-face { font-family: Quicksand; font-weight: 600; font-display: swap; src: url(/fonts/Quicksand_600SemiBold.ttf) format('truetype'); }
@font-face { font-family: Quicksand; font-weight: 700; font-display: swap; src: url(/fonts/Quicksand_700Bold.ttf) format('truetype'); }

:root {
  --accent: #1d9e8f;
  --bg: #fbfbfc; --card: #ffffff; --line: #ececf0; --ink: #16171a; --soft: #3a3c42; --muted: #6b6e75;
  --sos: #c4271c; --sos-bg: #fff5f4; --warn: #b9650a; --warn-bg: #fff8ef; --home: #1f8a5c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111214; --card: #1a1b1e; --line: #2a2c30; --ink: #f1f1f3; --soft: #c9cbd1; --muted: #9a9da5;
          --sos-bg: #2a1212; --warn-bg: #2a1e0f; color-scheme: dark; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 500 16px/1.45 Quicksand, -apple-system, system-ui, sans-serif; }
body.is-sos { background: var(--sos-bg); --state: var(--sos); }
body.is-missed { background: var(--warn-bg); --state: var(--warn); }
main { max-width: 30rem; margin: 0 auto; padding: 18px 18px 40px; }
a { color: inherit; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* top line */
.top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: 14px; color: var(--muted); }
.live { display: inline-flex; gap: 7px; align-items: center; color: var(--state, var(--accent)); }
.live::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.live.blink::before { animation: blink 1.6s ease-in-out infinite; }

/* radar */
.radar { --state: var(--accent); position: relative; width: 220px; height: 220px; margin: 18px auto 10px; display: grid; place-items: center; }
.radar .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--state); opacity: 0; transform: scale(.36); }
.radar.on .ring { animation: pulse 2.4s linear infinite; }
.radar.on .ring:nth-child(2) { animation-delay: 1.2s; }
.radar.fast .ring { animation-duration: 1.4s; }
.radar.fast .ring:nth-child(2) { animation-delay: .7s; }
.radar .guide { position: absolute; border-radius: 50%; border: 1px solid var(--state); opacity: .14; }
.radar .g1 { inset: 0; } .radar .g2 { inset: 36px; opacity: .22; }
.radar .core { width: 80px; height: 80px; border-radius: 50%; background: var(--state); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: 30px; z-index: 1; letter-spacing: .5px; }
.radar .core.small { font-size: 20px; }
.radar .core svg.i { width: 34px; height: 34px; stroke-width: 2.4; }
.radar.idle .core { background: var(--line); color: var(--muted); }
@keyframes pulse { 0% { transform: scale(.36); opacity: .8; } 100% { transform: scale(1); opacity: 0; } }
@keyframes blink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  .radar.on .ring { animation: none; opacity: .35; transform: scale(.7); }
  .radar.on .ring:nth-child(2) { opacity: .2; transform: scale(.95); }
  .live.blink::before { animation: none; }
}

/* status */
.status { text-align: center; }
.status h1 { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.3px; }
.status p { color: var(--muted); font-size: 15px; font-weight: 600; margin-top: 6px; }

/* actions */
.btn { display: flex; gap: 9px; justify-content: center; align-items: center; width: 100%; margin-top: 12px;
  border-radius: 999px; padding: 14px 18px; font: 700 15.5px/1.2 Quicksand, system-ui, sans-serif; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--state, var(--accent)); color: var(--state, var(--accent)); background: transparent; }
.btn.solid { background: var(--state, var(--accent)); color: #fff; }
.btn:focus-visible { outline: 3px solid var(--state, var(--accent)); outline-offset: 3px; }
.actions { margin-top: 18px; }
.note { font-size: 13.5px; color: var(--muted); text-align: center; margin-top: 10px; line-height: 1.5; }
.alerts { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); }

/* sections */
.section { margin-top: 26px; }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }

/* timeline */
.tl { list-style: none; margin-left: 6px; border-left: 2px solid var(--line); padding-left: 18px; display: grid; gap: 14px; }
.tl li { position: relative; font-size: 15px; font-weight: 600; color: var(--soft); }
.tl li::before { content: ''; position: absolute; left: -25px; top: 5px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line); }
.tl li.done::before { background: var(--accent); border-color: var(--accent); }
.tl li.warn::before { background: var(--warn); border-color: var(--warn); }
.tl li.sos::before { background: var(--sos); border-color: var(--sos); }
.tl li.home::before { background: var(--home); border-color: var(--home); }
.tl time { display: inline-block; min-width: 46px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* who + where */
.who { display: flex; gap: 14px; align-items: center; }
.photo { position: relative; width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex: none; border: 2.5px solid var(--partner, var(--accent)); background: var(--line); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo span { position: absolute; left: -10px; right: -10px; top: 50%; transform: translateY(-50%) rotate(-24deg); text-align: center; font-size: 8px; font-weight: 700; letter-spacing: 1px; color: rgba(255,255,255,.75); text-shadow: 0 0 3px rgba(0,0,0,.5); }
.who b { font-size: 19px; font-weight: 700; display: block; }
.who small { font-size: 14px; color: var(--muted); font-weight: 600; }
.verified { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--partner, var(--accent)); }
.verified.no { color: var(--muted); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chips span { font-size: 13px; font-weight: 600; color: var(--soft); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; }
.where { display: grid; gap: 12px; }
.where div, .where a { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 16px; text-decoration: none; }
.where svg.i { color: var(--accent); }
.where small { display: block; font-weight: 600; font-size: 13px; color: var(--muted); }

/* iPhone Home Screen hint */
.hint { margin-top: 14px; font-size: 14px; color: var(--soft); line-height: 1.5; }
.hint b { color: var(--ink); }

.foot { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 28px; line-height: 1.5; }
.empty { text-align: center; padding-top: 10px; }
.empty h1 { font-size: 24px; font-weight: 700; }
.empty p { color: var(--muted); margin-top: 8px; font-weight: 600; }
