/* MAGA Trust v1 — simple, readable stylesheet. No framework. */

:root {
  --bg: #faf8f5;
  --ink: #1d1a16;
  --muted: #6b6259;
  --accent: #7c5cd6;      /* soft violet — anchors the rainbow */
  --accent-soft: #f3effe;
  --accent-2: #e0609a;    /* soft pink */
  --card: #ffffff;
  --line: #e8e2d9;
  --danger: #b91c1c;
  --ok: #166534;
  /* subtle rainbow — pastel, MAGA rebrand */
  --rainbow: linear-gradient(90deg, #f2a7c3, #f7b98e, #f4dc96, #a9e4bb, #a5dcf2, #bcb3f6);
  --rainbow-soft: linear-gradient(90deg, #fceef4, #fdf4e9, #fdf9e6, #ebf9f0, #eaf6fd, #f0eefd);
  --rainbow-deep: linear-gradient(90deg, #d9638f, #dd8a3f, #cfa32e, #4da56a, #3d9bd6, #7c5cd6);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
/* thin rainbow ribbon across the top of every page */
body::before {
  content: "";
  display: block;
  height: 5px;
  background: var(--rainbow);
}

/* ---- nav ---- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--line);
  background: var(--card);
}
.brand { font-weight: 800; font-size: 1.25rem; text-decoration: none; color: var(--ink); }
.brand span { color: var(--accent); }
.nav-links a { margin-left: 1.25rem; text-decoration: none; color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn { color: #fff; }

/* ---- layout ---- */
.wrap { max-width: 960px; margin: 0 auto; padding: 2rem; }
.wrap.narrow { max-width: 460px; }

.hero {
  text-align: center;
  padding: 4rem 1rem 3rem;
}
.hero h1 {
  font-size: 2.75rem;
  line-height: 1.15;
  margin: 0 0 1rem;
}
.hero h1 .grad {
  background: var(--rainbow-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lede { font-size: 1.2rem; color: var(--muted); max-width: 620px; margin: 0 auto 2rem; }
.badge {
  display: inline-block;
  background: var(--rainbow-soft);
  color: var(--ink);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
}

/* ---- cards / forms ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 2rem;
  margin-top: 1.5rem;
}
label { display: block; font-weight: 600; margin: 1rem 0 0.35rem; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}
input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }

.btn {
  display: inline-block;
  background: var(--rainbow-deep);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  margin-top: 1.25rem;
}
.btn:hover { filter: brightness(0.93); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--accent-soft); }

.inline-form { display: flex; gap: 0.5rem; margin-top: 1rem; }
.inline-form input { flex: 1; }
.inline-form .btn { margin-top: 0; white-space: nowrap; }

.alert { border-radius: 8px; padding: 0.8rem 1rem; margin: 1rem 0; font-weight: 600; }
.alert.error { background: #fee2e2; color: var(--danger); }
.alert.notice { background: #dcfce7; color: var(--ok); }

.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid transparent;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
}
.feature::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px; right: -1px;
  height: 4px;
  border-radius: 12px 12px 0 0;
  background: var(--rainbow);
}
.feature h3 { margin-top: 0; }

footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 3rem 1rem 2rem;
}

/* ---- page artwork ---- */
.page-img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 0 auto 2rem;
  box-shadow: 0 12px 32px rgba(29, 26, 22, 0.10);
}
.page-img.hero-img { max-width: 640px; }
.page-img.product { max-width: 420px; }
