/* Zolyx Vigia landing page. No external fonts, scripts, cookies or tracking. */

:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #1a1d21;
  --text-2: #3b4148;
  --muted: #6b7280;
  --border: #e3e5e8;
  --accent: #f59e0b;
  --warn-bg: #fff6e5;
  --warn-border: #f5c26b;
  --warn-label: #8a5a00;
  --warn-value: #3d2600;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}

/* Width without side padding, so divider lines line up with the text. */
.wrap {
  width: min(640px, 100% - 40px);
  margin-left: auto;
  margin-right: auto;
}

h1, h2, h3 { color: var(--text); line-height: 1.25; }
h1 { font-size: clamp(28px, 6vw, 40px); margin: 0 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 22px; margin: 0 0 12px; }
h3 { font-size: 17px; margin: 0 0 4px; }
p { margin: 0 0 16px; }

main > section { padding-top: 48px; padding-bottom: 48px; }
main > section + section { border-top: 1px solid var(--border); }
main > section > :last-child { margin-bottom: 0; }

.note { margin: 24px 0 0; }
.note + .note { margin-top: 8px; }

.muted { color: var(--muted); }
.small { font-size: 14px; margin-top: 12px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  padding-bottom: 8px;
}
.brand { font-weight: 700; color: var(--text); font-size: 18px; }
.badge {
  font-size: 13px;
  font-weight: 600;
  color: var(--warn-label);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 999px;
  padding: 2px 10px;
}

/* Hero */
main > .hero { padding-top: 40px; padding-bottom: 48px; }
.lead { font-size: 19px; }

.button {
  display: inline-block;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 6px;
}
.button:hover { background: #33383f; }
.button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; gap: 16px; margin-bottom: 20px; }
.steps li:last-child { margin-bottom: 0; }
.steps p { margin: 0; }
.num {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Email example (mirrors app/vigia/email.server.ts) */
.email { margin-top: 8px; }
.email-meta {
  font-size: 14px;
  color: var(--text-2);
  margin-bottom: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.email-meta .label { color: var(--muted); }
.email-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  font-size: 15px;
  line-height: 22px;
}
.email-head {
  padding: 18px 28px;
  border-bottom: 1px solid #eceef1;
  font-weight: 700;
  font-size: 17px;
  color: var(--text);
}
.email-body { padding: 24px 28px 28px; }
.email-title { font-size: 20px; line-height: 28px; font-weight: 700; color: var(--text); margin-bottom: 12px; }
.email-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 4px 12px;
  margin: 0 0 20px;
  padding: 14px 18px;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
  line-height: 20px;
}
.email-box dt { color: var(--warn-label); }
.email-box dd { margin: 0; color: var(--warn-value); font-weight: 600; }
.email-button {
  display: inline-block;
  background: var(--text);
  color: #fff;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 6px;
}

/* Privacy */
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { position: relative; padding-left: 28px; margin-bottom: 10px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 6px;
  height: 11px;
  border: solid #15803d;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Footer */
.foot {
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 480px) {
  body { font-size: 16px; }
  main > section { padding-top: 36px; padding-bottom: 36px; }
  .wrap { width: calc(100% - 32px); }
  .email-head { padding: 16px 18px; }
  .email-body { padding: 20px 18px 22px; }
  .email-box { grid-template-columns: 1fr; gap: 0; }
  .email-box dd { margin-bottom: 8px; }
  .email-box dd:last-child { margin-bottom: 0; }
}
