/* CrimeEye website (join / subscribe) — dark theme matching the app and CrimeEye Live. */
:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: #b8c0cc;
  --line: #303640;
  --panel: #111419;
  --soft: #181d24;
  --field: #0b0d10;
  --accent: #b51f2a;
  --accent-bright: #d52b38;
  --green: #22c55e;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #000;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

button, input { font: inherit; }
a { color: #fff; }

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  background: #050608;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 64px; height: auto; background: #000; }
.brand-name { font-weight: 800; font-size: 1.1rem; }
.account-bar { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.9rem; }

main {
  flex: 1;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.hero { max-width: 720px; margin: 8px auto 24px; text-align: center; }
h1 { margin: 0 0 10px; font-size: 2rem; }
h2 { margin: 0 0 6px; font-size: 1.3rem; }
.lead { margin: 0; color: var(--muted); font-size: 1.05rem; }
.muted { color: var(--muted); }
.center { text-align: center; }

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.fineprint { margin: 0; color: var(--muted); font-size: 0.85rem; }
.error { margin: 0; color: var(--accent-bright); }

.notice {
  max-width: 720px;
  margin: 0 auto 18px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--soft);
}
.notice.is-success { border-color: var(--green); color: var(--green); }

.panel {
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 20px;
  margin: 0 auto 24px;
  max-width: 720px;
}
.panel.narrow { max-width: 460px; }

form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; }
label.choice { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: 0.9rem; }
input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--field);
  color: var(--ink);
  padding: 10px 12px;
  font-weight: 400;
}
input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }

button { cursor: pointer; }
button:disabled { opacity: 0.6; cursor: default; }
button.primary, .button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid var(--accent-bright);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
  text-decoration: none;
}
button.primary:hover, .button-link:hover { background: var(--accent-bright); }
button.secondary {
  min-height: 48px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
}
button.secondary:hover { background: var(--panel); }
.link-button { border: 0; background: none; color: #fff; text-decoration: underline; padding: 0; font-size: inherit; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

.tabs { display: flex; gap: 8px; }
.tab {
  flex: 1;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font-weight: 700;
}
.tab.is-active { color: #fff; background: var(--soft); border-color: #fff; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  padding: 20px;
}
.plan.is-featured { border-color: var(--accent-bright); }
.plan ul { margin: 4px 0 8px; padding-left: 18px; flex: 1; }
.plan li { margin-bottom: 6px; }
.plan .plan-button { margin-top: auto; }
.plan p { margin: 0; }
.price { font-size: 2rem; font-weight: 800; }
.price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.badge {
  position: absolute;
  top: -11px;
  right: 14px;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 10px;
}

.disclosure {
  max-width: 720px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer {
  padding: 18px 16px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}
.site-footer p { margin: 4px 0; }
.site-footer a { color: var(--muted); }
