/* ==========================================================================
   HotSignals — Instant alerts (alerts.php): the pitch with a phone showing a
   notification, the status / device card, filters and the owner panel.
   ========================================================================== */

.al-main { max-width: 1120px; margin: 0 auto; padding: 28px 16px 0; display: grid; gap: 28px; }
.note-ok { padding: 10px 14px; border-radius: 8px; background: color-mix(in srgb, var(--won, #2FA866) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--won, #2FA866) 50%, transparent); }
.form-error { padding: 10px 14px; border-radius: 8px; border: 1px solid color-mix(in srgb, #E5484D 50%, transparent); }

/* Hero */
.al-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(250px, .75fr); gap: 44px; align-items: center; }
.al-kicker { margin: 0 0 10px; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--flare); font-weight: 600; }
.al-copy h1 { margin: 0 0 14px; font-size: clamp(2rem, 4.6vw, 3.2rem); font-stretch: 72%; line-height: 1.02; letter-spacing: -.01em; }
.al-copy p { margin: 0 0 12px; max-width: 60ch; line-height: 1.6; color: var(--muted); }
.al-copy .al-lede { font-size: 1.08rem; color: var(--text); }
.al-deal { color: var(--text) !important; font-size: 1.02rem; padding: 10px 14px; border-left: 4px solid #FFDD00; background: var(--surface); border-radius: 0 8px 8px 0; }
.al-fine { font-size: .86rem; color: var(--muted); }
.al-fine a, .al-copy a { color: var(--text); font-weight: 600; }

/* The phone with the example notification */
.al-phone { margin: 0; justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 15; padding: 12px; border-radius: 38px;
  background: #0B0F16; box-shadow: 0 0 0 2px #2A3343, 0 24px 48px rgba(10, 16, 28, .35); }
.al-screen { height: 100%; border-radius: 28px; padding: 46px 12px 12px; overflow: hidden; position: relative;
  background: radial-gradient(120% 80% at 20% 0%, #FF6A3D 0%, #8D2F4D 38%, #1E2A55 72%, #0E1520 100%); }
.al-clock { margin: 0 0 26px; text-align: center; font-size: 3.4rem; font-weight: 300; font-stretch: 85%; color: rgba(255, 255, 255, .92); letter-spacing: -.02em; line-height: 1; }
.al-notif { display: flex; gap: 10px; padding: 11px 12px; border-radius: 18px; background: rgba(245, 247, 250, .86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #10151E; box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }
.al-notif + .al-notif { margin-top: 8px; }
.al-notif-2 { opacity: .78; transform: scale(.96); }
.al-notif-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; background: #0E1520 url("../icons/icon-192.png") center / cover; }
.al-notif-text { min-width: 0; }
.al-notif-text p { margin: 0; }
.al-notif-app { font-size: .68rem; font-weight: 600; color: #5A6372; display: flex; justify-content: space-between; gap: 8px; }
.al-notif-app span { font-weight: 400; }
.al-notif-title { font-size: .84rem; font-weight: 700; line-height: 1.25; margin-top: 2px !important; }
.al-notif-body { font-size: .78rem; line-height: 1.35; color: #2C3442; margin-top: 2px !important; }
@media (prefers-reduced-motion: no-preference) {
  #alNotifDemo { animation: al-drop .7s cubic-bezier(.2, .9, .3, 1.2) .4s both; }
  @keyframes al-drop { from { transform: translateY(-40px) scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
}

/* Supporters with alerts on go straight to their controls: a compact hero without the phone */
.al-main[data-state="active"] .al-hero { grid-template-columns: minmax(0, 1fr); }
.al-main[data-state="active"] .al-phone, .al-main[data-state="active"] .al-lede, .al-main[data-state="active"] .al-hero .al-fine { display: none; }
.al-main[data-state="active"] .al-copy h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); }

/* Steps (logged out) */
.al-steps h2, .al-card h2, .al-faq h2 { margin: 0 0 12px; font-size: 1.5rem; font-stretch: 78%; }
.al-steps ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.al-steps li { counter-increment: s; display: grid; gap: 6px; align-content: start; padding: 16px 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.al-steps li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--flare); color: var(--flare-ink); font-weight: 800; font-family: var(--mono); font-size: .85rem; }
.al-steps li span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.al-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.btn-lg { padding: 11px 18px; font-size: .98rem; font-weight: 700; }
.bmc-sm { padding: 9px 16px; font-size: .95rem; }

/* Cards */
.al-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px 22px; }
.al-card > p { margin: 0 0 8px; line-height: 1.6; max-width: 70ch; }
.al-off { border-top: 4px solid #FFDD00; }
.al-status { border-top: 4px solid var(--won, #2FA866); }
.al-status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.al-status-top h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.al-status-top p { margin: 0; }
.al-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--won, #2FA866); box-shadow: 0 0 0 0 color-mix(in srgb, var(--won, #2FA866) 60%, transparent); }
@media (prefers-reduced-motion: no-preference) {
  .al-dot { animation: al-ping 2s ease-out infinite; }
  @keyframes al-ping { to { box-shadow: 0 0 0 10px transparent; } }
}

.al-device { margin-top: 18px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); border: 1px dashed var(--line); }
.al-device.is-on { border-style: solid; border-color: color-mix(in srgb, var(--won, #2FA866) 55%, var(--line)); }
.al-device-title { margin: 0; font-weight: 700; }
.al-device-sub { margin: 2px 0 0; font-size: .86rem; }
.al-device-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.al-ios { margin-top: 12px; padding: 12px 14px; border-radius: var(--r-md); background: color-mix(in srgb, #FFDD00 14%, var(--surface)); font-size: .9rem; line-height: 1.5; }
.al-share { display: inline-block; padding: 0 6px; border: 1px solid var(--line); border-radius: 5px; font-size: .8rem; }
.al-devices { margin-top: 12px; font-size: .9rem; }
.al-devices summary { cursor: pointer; color: var(--muted); }
.al-devices ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.al-devices li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); }
.al-devices li small { color: var(--muted); }

/* Filters */
.al-f-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.al-estimate { margin: 0 0 12px; font-family: var(--mono); font-size: .82rem; color: var(--muted); }
.al-estimate b { color: var(--text); font-size: .95rem; }
.al-prefs { display: grid; gap: 16px; }
.al-prefs fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.al-prefs legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: .92rem; }
.al-row { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.al-row legend { width: 100%; }
.al-row .field input { width: 120px; }
.al-and { font-size: .9rem; color: var(--muted); align-self: center; }
.al-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.al-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface-2); font-size: .9rem; cursor: pointer; user-select: none; }
.al-chip input { accent-color: var(--flare); }
.al-chip:has(input:checked) { border-color: var(--flare); background: color-mix(in srgb, var(--flare) 12%, var(--surface)); }
.al-save { display: flex; gap: 12px; align-items: center; }

/* FAQ */
.al-faq dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.al-faq dt { font-weight: 700; margin-bottom: 4px; }
.al-faq dd { margin: 0; color: var(--muted); line-height: 1.55; font-size: .93rem; }
.al-faq > p { margin-top: 16px; }

/* Owner */
.al-owner h3 { margin: 18px 0 4px; font-size: 1rem; color: var(--text); }
.al-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.al-nums div { display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); background: var(--surface-2); }
.al-nums b { font-size: 1.6rem; font-stretch: 80%; }
.al-nums span { font-size: .78rem; color: var(--muted); }
.al-grant { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.al-unclaimed { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.al-unclaimed li { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid var(--line); font-size: .9rem; }
.al-unclaimed form { display: flex; gap: 6px; }
.al-unclaimed input { padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); }

@media (max-width: 860px) {
  .al-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .al-phone { width: min(260px, 80%); }
  .al-steps ol, .al-faq dl { grid-template-columns: minmax(0, 1fr); }
  .al-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .al-card { padding: 16px; }
  .al-device-btns, .al-device-btns .btn { width: 100%; }
}
.al-owner > .al-fine { margin-top: 14px; }
