/* MuscleGains — shared styles
   Brand: matches the MuscleGains iOS app
   bg #0A0E1A · surface #1A1F2E · border #2A3040 · primary #2E86C1
   text #FFFFFF · secondary #8899AA · success #27AE60 */

:root {
  --bg: #0c111c;
  --surface: #141c2c;
  --surface-2: #090d16;
  --border: #242e42;
  --blue: #4a9eff;
  --blue-light: #7db8ff;
  --gold: #f5c84f;
  --text: #f2f5fa;
  --muted: #8c99ad;
  --faint: #627083;
  --green: #30c56f;
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* ---------- accessibility ---------- */
.skip {
  position: absolute; left: 20px; top: -60px; z-index: 10;
  background: var(--blue); color: #fff;
  padding: 10px 18px; border-radius: 0 0 10px 10px;
  font-weight: 700; text-decoration: none;
  transition: top 0.15s ease;
}
.skip:focus { top: 0; color: #fff; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 1.0625rem;
}

a { color: var(--blue-light); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--blue-light); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }

/* ---------- header ---------- */
header.site {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 18px; padding-bottom: 18px;
}
.wordmark {
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.wordmark .logomark { flex: none; display: block; }
.wordmark .brand {
  display: inline-flex; align-items: baseline;
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: 1.45rem; line-height: 1; letter-spacing: -0.01em;
}
.wordmark .mg-m { color: var(--gold); }
.wordmark .mg-g { color: var(--blue); }
.wordmark .mg-ai { color: var(--text); font-size: 0.78em; margin-left: 0.45em; }
nav.site a {
  color: var(--text); text-decoration: none; margin-left: 24px;
  font-weight: 600; font-size: 0.95rem;
}
nav.site a:hover { color: var(--blue-light); }
@media (max-width: 520px) {
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav.site a { margin-left: 0; margin-right: 18px; }
}

/* ---------- hero ---------- */
.hero {
  padding: 84px 0 64px;
  background:
    radial-gradient(900px 420px at 75% -10%, rgba(74, 158, 255, 0.16), transparent 65%),
    var(--bg);
}
.hero h1 {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.05; letter-spacing: -0.02em;
  max-width: 15ch;
}
.hero p.lede {
  margin-top: 22px; max-width: 56ch;
  font-size: 1.2rem; color: var(--muted);
}
.hero .actions { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; background: var(--blue); color: #fff;
  font-weight: 700; text-decoration: none;
  padding: 14px 28px; border-radius: 12px;
  border: 1px solid var(--blue);
}
.btn:hover { background: var(--blue-light); border-color: var(--blue-light); color: #0c111c; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--blue-light); color: var(--blue-light); }
.hero .note { font-size: 0.9rem; color: var(--muted); }
.soon {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; color: #fff;
  padding: 14px 24px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface);
}
.soon::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold); flex: none;
}

/* ---------- score card ---------- */
.scorecard {
  margin: 60px auto 0; max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(74, 158, 255, 0.08);
  overflow: hidden;
}
.scorecard .cam {
  background: var(--surface-2); color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 11px 20px; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  display: flex; justify-content: space-between;
}
.scorecard .body { padding: 24px 24px 26px; }
.scorecard .meal { font-weight: 700; font-size: 1.15rem; }
.scorecard .range { color: var(--muted); margin-top: 4px; }
.scorecard .divider { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
.scorecard .score-row { display: flex; align-items: baseline; gap: 16px; }
.scorecard .score {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: 3.2rem; font-weight: 400; line-height: 1; color: var(--blue);
  letter-spacing: -0.02em;
}
.scorecard .score small { font-size: 1.1rem; color: var(--muted); font-weight: 600; }
.scorecard .why { color: var(--muted); font-size: 0.95rem; max-width: 30ch; }

/* ---------- sections ---------- */
section.block { padding: 72px 0; }
section.block + section.block { border-top: 1px solid var(--border); }
h2 {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(1.5rem, 3.2vw, 2rem); font-weight: 400;
  letter-spacing: -0.015em; margin-bottom: 14px; max-width: 26ch;
}
section.block > .wrap > p { max-width: 62ch; color: var(--muted); font-size: 1.1rem; }

.features { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 24px 26px;
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; padding-top: 14px; position: relative; }
.feature h3::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 34px; height: 4px; border-radius: 2px; background: var(--blue);
}
.feature:nth-child(2) h3::before { background: var(--gold); }
.feature:nth-child(3) h3::before { background: var(--green); }
.feature:nth-child(4) h3::before { background: var(--faint); }
.feature p { color: var(--muted); font-size: 0.98rem; }

/* honest section */
.honest {
  background:
    radial-gradient(700px 300px at 20% 110%, rgba(74, 158, 255, 0.12), transparent 65%),
    var(--surface-2);
}
.honest h2 { color: #fff; }
.honest p { color: var(--muted); max-width: 62ch; font-size: 1.1rem; }
.honest p strong { color: #fff; }

/* pricing */
.tiers { margin-top: 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 680px) { .tiers { grid-template-columns: 1fr; } }
.tier {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; background: var(--surface);
}
.tier.premium {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 18px 50px rgba(74, 158, 255, 0.18);
}
.tier h3 { font-family: "Archivo Black", "Inter", sans-serif; font-size: 1.2rem; font-weight: 400; }
.tier .price { font-size: 1.05rem; color: var(--gold); font-weight: 600; margin: 8px 0 16px; }
.tier ul { list-style: none; }
.tier li { padding: 9px 0 9px 26px; border-top: 1px solid var(--border); font-size: 0.98rem; color: #c6cfdb; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 2px; color: var(--green); font-weight: 700; }
.tier li:first-child { border-top: 0; }

/* ---------- legal / prose pages ---------- */
main.prose { padding: 56px 0 72px; }
main.prose h1 {
  font-family: "Archivo Black", "Inter", sans-serif;
  font-size: clamp(1.9rem, 4.5vw, 2.5rem); font-weight: 400;
  letter-spacing: -0.015em; margin-bottom: 8px;
}
main.prose .updated { color: var(--muted); margin-bottom: 36px; }
main.prose h2 { font-size: 1.35rem; margin: 40px 0 10px; }
main.prose h3 { font-size: 1.05rem; margin: 22px 0 6px; }
main.prose p, main.prose li { max-width: 68ch; color: #c6cfdb; }
main.prose p { margin-bottom: 14px; }
main.prose ul, main.prose ol { margin: 0 0 14px 22px; }
main.prose li { margin-bottom: 6px; }
main.prose strong { color: #fff; }
main.prose .callout {
  border: 1px solid var(--border); border-left: 6px solid var(--blue);
  border-radius: 12px; background: var(--surface);
  padding: 16px 18px; margin: 20px 0; max-width: 68ch;
}

/* FAQ */
details.faq {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); margin-bottom: 12px; max-width: 68ch;
}
details.faq summary {
  cursor: pointer; font-weight: 700; padding: 15px 18px;
  list-style-position: inside;
}
details.faq summary:hover { color: var(--blue-light); }
details.faq[open] summary { border-bottom: 1px solid var(--border); }
details.faq .a { padding: 14px 18px; }
details.faq .a p { margin-bottom: 10px; }

/* ---------- contact form ---------- */
form.contact { max-width: 560px; margin-top: 10px; }
form.contact .field { margin-bottom: 20px; }
form.contact label { display: block; font-weight: 700; margin-bottom: 7px; }
form.contact input[type="text"],
form.contact input[type="email"],
form.contact select,
form.contact textarea {
  width: 100%; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px;
}
form.contact select option { background: var(--surface); color: var(--text); }
form.contact input:focus, form.contact select:focus, form.contact textarea:focus {
  border-color: var(--blue-light);
}
form.contact textarea { resize: vertical; }
form.contact .hint { font-size: 0.9rem; color: var(--muted); margin-top: 8px; max-width: 54ch; }
form.contact .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
form.contact .btn { font: inherit; font-weight: 700; cursor: pointer; }

/* success box: hidden until the form returns to #sent */
#sent { display: none; border-left-color: var(--green); }
#sent:target { display: block; }

/* ---------- footer ---------- */
footer.site {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 36px 0 48px; margin-top: 48px;
  font-size: 0.95rem; color: var(--muted);
}
footer.site .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer.site a { color: #d7dee8; text-decoration: none; margin-right: 18px; font-weight: 600; }
footer.site a:hover { color: var(--blue-light); }
footer.site .disclaimer { max-width: 56ch; margin-top: 12px; font-size: 0.85rem; }
