/*
 * listmonk public pages (subscribe form, opt-in, unsubscribe/preferences,
 * archive) styled to match alethia.ai.
 * Paste into listmonk: Settings -> Appearance -> Public -> Custom CSS.
 *
 * Tokens taken from alethia.ai's own CSS: slate-50 background, navy text,
 * blue accent/gradient, Outfit headings + Inter body, 16px cards, pill buttons.
 * Selectors are mostly element-level so they survive listmonk template changes;
 * check class names with the browser inspector after a listmonk upgrade.
 */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@500;600;700&display=swap");

:root {
  --al-bg: #f8fafc;
  --al-card: #ffffff;
  --al-text: #0f172a;
  --al-muted: #64748b;
  --al-border: #e2e8f0;
  --al-accent: #2563eb;
  --al-gradient: linear-gradient(180deg, #3271dd 0%, #2e90fa 100%);
  --al-glow: 0 0 80px 0 rgba(49, 122, 229, 0.12);
  --al-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --al-font-head: "Outfit", "Inter", system-ui, sans-serif;
}

html,
body {
  background: var(--al-bg);
  color: var(--al-text);
  font-family: var(--al-font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Main card: same look as the newsletter card on alethia.ai */
.wrap,
.container {
  max-width: 560px;
  margin: 48px auto;
  padding: 40px 32px;
  background: var(--al-card);
  border: 1px solid var(--al-border);
  border-radius: 16px;
  box-shadow: var(--al-glow);
  box-sizing: border-box;
}

/* Logo (set the Logo URL under Settings -> General) */
.header {
  text-align: center;
  margin-bottom: 32px;
  border: 0;
}
.header .logo img,
.header img {
  height: 28px;
  width: auto;
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--al-font-head);
  font-weight: 600;
  color: var(--al-text);
  letter-spacing: -0.01em;
  line-height: 1.25;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.5rem; margin: 0 0 12px; }
h3 { font-size: 1.125rem; }

p,
li,
label {
  color: var(--al-text);
}
small,
.description,
.help {
  color: var(--al-muted);
}

a {
  color: var(--al-accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* Form fields */
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 16px;
  font-family: var(--al-font-body);
  font-size: 1rem;
  color: var(--al-text);
  background: #fff;
  border: 1px solid var(--al-border);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
select:focus,
textarea:focus {
  border-color: #2e90fa;
  box-shadow: 0 0 0 3px rgba(46, 144, 250, 0.18);
}

input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--al-accent);
  width: 18px;
  height: 18px;
  vertical-align: middle;
}

/* List checkboxes on the subscribe / preferences pages */
.lists {
  list-style: none;
  padding: 0;
  margin: 16px 0;
}
.lists li {
  padding: 12px 16px;
  margin-bottom: 8px;
  border: 1px solid var(--al-border);
  border-radius: 12px;
}

/* Primary button: alethia.ai pill with the brand gradient */
.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-family: var(--al-font-head);
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  background: var(--al-gradient);
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.1s ease, filter 0.2s ease;
}
.button:hover,
button:hover,
input[type="submit"]:hover {
  filter: brightness(1.06);
  text-decoration: none;
}
.button:active,
button:active,
input[type="submit"]:active {
  transform: translateY(1px);
}

/* Secondary button (e.g. "unsubscribe from all") */
.button.button-outline {
  color: var(--al-accent);
  background: transparent;
  border: 2px solid var(--al-accent);
}

/* Archive list */
.archive li,
.archive .item {
  padding: 16px 0;
  border-bottom: 1px solid var(--al-border);
}
.archive .date {
  color: var(--al-muted);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  margin-top: 32px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--al-muted);
}
.footer a {
  color: var(--al-muted);
}

@media (max-width: 600px) {
  .wrap,
  .container {
    margin: 16px;
    padding: 28px 20px;
  }
}
