/* SentinelZero phishing simulation — minimal global styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #1a1d21;
  --text-muted: #5c636a;
  --border: #e2e5ea;
  --accent: #0f5cad;
  --accent-hover: #0a4588;
  --warning-bg: #fff4e0;
  --warning-border: #e8a838;
  --warning-text: #3d3207;
  --shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  --radius: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --line: 1.55;
  --content-max: 40rem;
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  line-height: var(--line);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--accent-hover);
}

/* ——— Home page ——— */
.home-header {
  margin-bottom: 2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.home-header h1 {
  font-size: clamp(1.5rem, 4vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin: 0;
}

.home-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.home-section h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.home-section p {
  margin: 0;
  color: var(--text-muted);
}

.home-cta p {
  margin-bottom: 1rem;
}

/* ——— Buttons ——— */
.button-primary,
.button-secondary {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.button-primary {
  background: var(--accent);
  color: #fff !important;
}

.button-primary:hover {
  background: var(--accent-hover);
  color: #fff !important;
}

.button-secondary {
  background: var(--surface);
  color: var(--accent) !important;
  border: 1px solid var(--border);
}

.button-secondary:hover {
  background: var(--bg);
}

/* ——— Training / banner ——— */
.banner {
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.banner-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-text);
}

.banner-warning p {
  margin: 0.5rem 0 0;
  color: inherit;
  opacity: 0.95;
}

.banner-neutral {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.banner-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.training-section {
  margin-bottom: 1.75rem;
}

.training-section h2,
.training-tips h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.training-section p,
.section-note {
  margin: 0 0 0.75rem;
  color: var(--text-muted);
  font-size: 0.98rem;
}

.training-actions {
  margin-top: 0.5rem;
}

/* ——— Email card ——— */
.email-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 0.75rem;
}

.email-card-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

.email-field {
  display: block;
  margin-bottom: 0.45rem;
}

.email-field:last-child {
  margin-bottom: 0;
}

.email-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.email-value {
  font-size: 0.95rem;
  word-break: break-word;
}

.email-card-body {
  padding: 1rem 1.1rem;
  max-height: 60vh;
  overflow: auto;
}

.email-html {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
}

.email-html img {
  max-width: 100%;
  height: auto;
}

/* ——— Tips list ——— */
.training-tips ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.training-tips li {
  margin-bottom: 0.45rem;
}

@media (min-width: 32rem) {
  .page {
    padding: 2rem 1.5rem 3rem;
  }
}
