/* MuzGoals website. White/black with one purple accent; follows the system light/dark setting. */
:root {
  --bg: #ffffff;
  --surface: #f6f5f8;
  --text: #111114;
  --muted: #5d5b66;
  --line: #e6e4ea;
  --accent: #6a2bc9;
  --accent-text: #ffffff;
  --accent-soft: #f1eafb;
  --danger: #b42318;
  --focus: #6a2bc9;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f12;
    --surface: #18181d;
    --text: #f3f2f6;
    --muted: #a9a6b3;
    --line: #2a2930;
    --accent: #b48cf2; /* the same purple, lightened so it reads on black */
    --accent-text: #120a1f;
    --accent-soft: #221933;
    --danger: #ff8a80;
    --focus: #b48cf2;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
main { flex: 1; }
img { max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
main.wrap { padding-top: 32px; padding-bottom: 64px; }

/* header */
.site-header { border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; }
.brand img { border-radius: 9px; background: #fff; }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.site-header nav a { color: var(--text); text-decoration: none; font-weight: 600; padding: 6px 0; display: inline-block; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--accent); }

/* type */
h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h2 { font-size: 23px; line-height: 1.3; margin: 40px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 18px; margin: 0 0 6px; }
p, ul, ol { margin: 0 0 14px; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
.lede { font-size: 19px; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.updated { margin-top: 40px; color: var(--muted); font-size: 15px; }

/* home */
.hero { text-align: center; padding: 32px 0 24px; }
.hero-logo { border-radius: 26px; background: #fff; box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; }
.hero .lede { max-width: 560px; margin: 0 auto 24px; }
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; min-width: 180px; padding: 10px 18px;
  border-radius: 12px; background: #000; color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; line-height: 1.1;
  border: 1px solid #000; position: relative;
}
@media (prefers-color-scheme: dark) { .badge { border-color: #55525e; } }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge small { display: block; font-size: 11px; font-weight: 500; }
.badge.is-soon { opacity: 0.85; }
.badge em { position: absolute; top: -10px; right: -8px; font-style: normal; font-size: 11px; font-weight: 700; background: var(--accent); color: var(--accent-text); padding: 2px 8px; border-radius: 99px; }

.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.cards li { margin: 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.cards p { margin: 0; color: var(--muted); }

.promise { margin: 48px auto 0; max-width: 720px; padding: 24px 28px; border-radius: 18px; background: var(--accent-soft); }
.promise h2 { margin-top: 0; }

/* content blocks */
.callout { padding: 16px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin: 20px 0; }
.callout p:last-child { margin-bottom: 0; }
.steps { padding-left: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; margin-bottom: 14px; min-height: 30px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font-weight: 800; display: grid; place-items: center; font-size: 15px;
}

/* buttons */
.button {
  display: inline-block; font: inherit; font-weight: 700; padding: 12px 22px; border-radius: 12px; border: 0;
  background: var(--accent); color: var(--accent-text); text-decoration: none; cursor: pointer;
}
.button.danger { background: var(--danger); color: var(--bg); }
.button[disabled] { opacity: 0.6; cursor: progress; }

/* form */
.form { margin: 20px 0; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 700; margin-bottom: 2px; }
.hint { font-size: 15px; color: var(--muted); margin: 0 0 8px; }
input[type="email"], input[type="text"] {
  width: 100%; font: inherit; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--muted);
  background: var(--bg); color: var(--text);
}
input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.check label { font-weight: 500; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { margin: 14px 0 0; font-weight: 600; }
.status.ok { color: var(--text); }
.status.err { color: var(--danger); }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 15px; }
.site-footer nav ul { margin-bottom: 12px; }
.site-footer p { margin: 0 0 6px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .form { padding: 16px; }
  .badge { min-width: 0; flex: 1 1 160px; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
