/* alert.css — shared stylesheet for every alert-signup site.
 *
 * Voice: a wire service for one niche. Display face (Bricolage Grotesque)
 * carries the brand; the sample-alert card is set in the system UI stack on
 * purpose — that's what a real notification looks like on the visitor's own
 * device; mono is the timestamp/ticker voice. Per-site personality comes from
 * --accent (set inline per domain from sites.yaml).
 */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #1d4ed8;
  --ink: #191c1e;
  --ink-soft: #5a6266;
  --paper: #f3f5f4;
  --card: #ffffff;
  --line: #dce1df;
  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 20px 20px 56px;
}

/* --- masthead ------------------------------------------------------------ */

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(36px, 7vw, 64px);
}

.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.wire {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  color: var(--ink-soft);
  white-space: nowrap;
}

.wire-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  animation: wire-pulse 2.6s ease-out infinite;
}

@keyframes wire-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 35%, transparent); }
  70%  { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* --- hero: pitch + sample alert + form ----------------------------------- */

.hero {
  display: grid;
  gap: 28px;
  grid-template-areas: "pitch" "demo" "signup";
}

@media (min-width: 840px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 360px;
    grid-template-areas:
      "pitch  demo"
      "signup demo";
    column-gap: 56px;
    row-gap: 32px;
    align-items: start;
  }
}

.pitch { grid-area: pitch; }
.demo { grid-area: demo; }
.signup { grid-area: signup; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.pitch h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}

.sub {
  color: var(--ink-soft);
  font-size: 1.06rem;
  max-width: 46ch;
}

/* the sample alert — the page's one bold element */

.demo-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.alert-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px 14px;
  box-shadow:
    0 1px 2px rgba(20, 24, 26, 0.05),
    0 12px 32px -12px rgba(20, 24, 26, 0.18);
  animation: alert-arrive 560ms cubic-bezier(0.2, 0.7, 0.2, 1) 260ms both;
}

@keyframes alert-arrive {
  from { opacity: 0; transform: translateY(-16px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

.alert-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
}

.alert-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.alert-source {
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-source em {
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
}

.alert-time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-soft);
  white-space: nowrap;
}

.alert-body {
  font-size: 0.95rem;
  line-height: 1.5;
}

.alert-why {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 0.74rem;
  color: var(--ink-soft);
}

/* --- signup -------------------------------------------------------------- */

.signup form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.signup input[type="email"] {
  flex: 1 1 220px;
  padding: 13px 14px;
  font-family: var(--body);
  font-size: 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  color: var(--ink);
}

.signup input[type="email"]::placeholder { color: var(--ink-soft); }

.signup button {
  padding: 13px 24px;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 480px) {
  .signup button { width: 100%; }
}

.signup button:hover { filter: brightness(1.08); }
.signup button:active { transform: translateY(1px); }
.signup button:disabled { opacity: 0.6; cursor: wait; }

.hp { position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.consent {
  margin-top: 10px;
  font-size: 0.76rem;
  color: var(--ink-soft);
}

.error {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #b42318;
}

.success {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 1px 2px rgba(20, 24, 26, 0.05);
}

.success strong { font-family: var(--display); font-weight: 600; }
.success p { color: var(--ink-soft); margin-top: 4px; font-size: 0.92rem; }

/* --- what we watch -------------------------------------------------------- */

.watchlist { margin-top: clamp(48px, 9vw, 80px); }

.watchlist h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.watchlist ul { list-style: none; max-width: 62ch; }

.watchlist li {
  position: relative;
  padding: 13px 0 13px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}

.watchlist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- footer --------------------------------------------------------------- */

.footer {
  margin-top: clamp(48px, 9vw, 80px);
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--ink-soft);
}

/* --- motion discipline ----------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .alert-card { animation: none; }
  .wire-dot { animation: none; }
}
