/* Village Alerts public site: opt-in, privacy policy, terms.
   Same palette and type as the Village app, so the pages read as one brand. */

:root {
  --bg: #efefef;
  --card: #ffffff;
  --navy: #2f455c;
  --ink: #333333;
  --muted: #6b7684;
  --brand: #1d91fe;
  --deep: #005dbb;
  --hairline: #e6e7ea;
  --radius-card: 28px;
  --shadow: 0 1px 2px rgba(20, 30, 45, 0.05), 0 8px 24px rgba(20, 30, 45, 0.07);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--deep); text-underline-offset: 2px; }
a:hover { color: var(--brand); }

.page {
  max-width: 820px;
  margin: 0 auto;
  padding: 40px 20px 56px;
}

/* ---------------------------------------------------------------- header */
.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}
.brand a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 30px;
  border-radius: 100px;
  background: var(--card);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.brand img { width: 38px; height: auto; display: block; }
.brand span {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1;
  color: var(--navy);
}
.brand span b { font-weight: 700; color: var(--brand); }

/* ----------------------------------------------------------------- cards */
.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  margin-bottom: 24px;
}

h1 {
  margin: 0 0 6px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  color: var(--navy);
}
.updated { margin: 0 0 24px; font-size: 14px; color: var(--muted); }

h2 {
  margin: 32px 0 10px;
  font-size: 21px;
  line-height: 1.3;
  font-weight: 600;
  color: var(--navy);
}
h2:first-child { margin-top: 0; }
h3 { margin: 20px 0 6px; font-size: 17px; font-weight: 600; }

p, li { color: var(--ink); }
ul { padding-left: 22px; }
li { margin-bottom: 6px; }

.callout {
  margin: 20px 0;
  padding: 16px 20px;
  border-left: 4px solid var(--brand);
  border-radius: 12px;
  background: #f3f8ff;
  color: var(--navy);
  font-weight: 500;
}

/* ------------------------------------------------------------ opt-in page */
.flyer {
  display: block;
  width: 100%;
  max-width: 612px;
  height: auto;
  margin: 0 auto 24px;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.steps { counter-reset: step; list-style: none; padding: 0; margin: 16px 0 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 14px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.number {
  white-space: nowrap;
  font-weight: 600;
  color: var(--navy);
}
.keyword {
  display: inline-block;
  padding: 1px 9px;
  border-radius: 8px;
  background: #eef4fb;
  font-weight: 600;
  color: var(--navy);
}

.terms-list { list-style: none; padding: 0; margin: 0; }
.terms-list li {
  padding: 12px 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}
.terms-list li:first-child { border-top: none; padding-top: 0; }
.terms-list strong { color: var(--navy); }

/* ----------------------------------------------------------------- footer */
.footer {
  margin-top: 8px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin-bottom: 10px;
}
.footer a { color: var(--navy); font-weight: 500; text-decoration: none; }
.footer a:hover { color: var(--brand); }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 600px) {
  .page { padding: 24px 16px 40px; }
  .brand { margin-bottom: 22px; }
  .brand a { padding: 12px 22px; gap: 10px; }
  .brand img { width: 30px; }
  .brand span { font-size: 26px; }
  .card { padding: 26px 22px; border-radius: 22px; }
  h1 { font-size: 26px; }
  h2 { font-size: 19px; }
  .flyer { border-radius: 18px; }
}

/* ------------------------------------------------------ opt-in sign-up form */
.optin { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.optin label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; color: var(--navy); }
.optin label em { font-style: normal; font-weight: 400; color: var(--muted); }
.optin input[type="text"], .optin input:not([type]), .optin input[type="tel"] {
  height: 46px; padding: 0 14px; border: 1px solid #cfd6de; border-radius: 10px;
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink); background: #fff;
}
.optin input:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.optin__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.optin__consent { flex-direction: row !important; align-items: flex-start; gap: 12px !important;
  padding: 14px 16px; border: 1px solid #d7e3f2; border-radius: 12px; background: #f5f9ff;
  font-weight: 400 !important; font-size: 14px !important; line-height: 1.5; color: var(--ink) !important; }
.optin__consent input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--deep); }
.optin__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.optin__button {
  align-self: flex-start; height: 48px; padding: 0 34px; border: none; border-radius: 999px;
  background: var(--deep); color: #fff; font: inherit; font-size: 17px; font-weight: 600; cursor: pointer;
}
.optin__button:hover { background: var(--brand); }
.optin__after { margin: 0; font-size: 14px; color: var(--muted); }
.optin__error { margin: 0 0 4px; padding: 12px 16px; border-radius: 10px; background: #fdecec; color: #b42318; font-size: 15px; }
.flyer--inline { margin: 20px auto 0; }
.done { text-align: center; }
.done .tick { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; background: #31cc7e; color: #fff; font-size: 34px; line-height: 64px; }
@media (max-width: 560px) { .optin__row { grid-template-columns: 1fr; } .optin__button { align-self: stretch; } }
