/* MIA Toolkit landing page — vanilla, no framework, no web fonts.
   Tuned for an older audience: large base text, high contrast, big targets. */

:root {
  --ink: #1a202c;
  --muted: #4a5568;
  --accent: #2c5282;       /* matches the inventory spreadsheet header */
  --accent-dark: #1f3a5f;
  --bg: #ffffff;
  --panel: #f7fafc;
  --border: #e2e8f0;
  --maxw: 760px;
}

* { box-sizing: border-box; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
header { border-bottom: 1px solid var(--border); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  /* Keep the .wrap horizontal padding — `14px 0` would override it and let the
     brand/language selector touch the screen edge on mobile. */
  padding: 14px 20px;
}
.brand { font-weight: 700; color: var(--accent); text-decoration: none;
  font-size: 1.05rem; }
.lang a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.lang a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.lang span { color: var(--border); margin: 0 6px; }
.langsel { font: inherit; font-size: 0.95rem; color: var(--muted);
  background: transparent; border: 1px solid var(--border);
  border-radius: 6px; padding: 3px 6px; margin-left: 10px; cursor: pointer; }

/* Hero */
.hero { padding: 40px 0 32px; text-align: center; }
.hero-img { display: block; width: 100%; height: auto; max-width: 620px;
  margin: 0 auto 22px; border-radius: 12px; border: 1px solid var(--border); }
.hero .cta { margin-bottom: 26px; }
.hero h1 { font-size: 2.1rem; line-height: 1.2; margin: 0 0 14px; }
.hero p.lead { font-size: 1.25rem; color: var(--muted); margin: 0 auto;
  max-width: 620px; }

/* Sections */
section { padding: 28px 0; }
h2 { font-size: 1.4rem; margin: 0 0 14px; }
.why p { margin: 0 0 16px; }

.steps { display: grid; gap: 14px; grid-template-columns: 1fr 1fr 1fr;
  margin: 8px 0 0; padding: 0; list-style: none; }
.steps li { background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px; }
.steps b { display: block; color: var(--accent); margin-bottom: 4px; }

/* Download */
.download { background: var(--panel); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border); text-align: center;
  padding: 40px 0; }
.btn {
  display: inline-block; background: var(--accent); color: #fff;
  text-decoration: none; font-size: 1.2rem; font-weight: 600;
  padding: 16px 30px; border-radius: 10px; border: 0;
  min-width: 280px; cursor: pointer;
}
.btn:hover { background: var(--accent-dark); }
.btn small { display: block; font-weight: 400; font-size: 0.8rem;
  opacity: 0.85; margin-top: 3px; }
.alt { margin-top: 16px; font-size: 1rem; }
.alt a { color: var(--accent); }
.reqs { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.note { color: var(--muted); font-size: 0.9rem; margin-top: 10px;
  font-style: italic; }

/* Links row + footer */
.links { text-align: center; }
.links a { color: var(--accent); text-decoration: none; margin: 0 10px; }
footer { color: var(--muted); font-size: 0.85rem; text-align: center;
  padding: 30px 0 50px; }
.disclaimer { max-width: 620px; margin: 0 auto 14px; }
.made-by { margin-top: 6px; }
footer p a { color: var(--muted); text-decoration: underline; }

/* Support page */
.manifesto { font-size: 1.15rem; }
.manifesto p { margin: 0 0 16px; }
.manifesto .big { font-size: 1.45rem; font-weight: 700; color: var(--accent);
  line-height: 1.3; }
.support-box { background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px; text-align: center; margin: 8px 0; }
.tiers { display: grid; gap: 10px; grid-template-columns: 1fr 1fr 1fr;
  margin: 14px 0 10px; }
.tier { display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px 10px; text-decoration: none; color: var(--ink); }
.tier:hover { border-color: var(--accent); }
.tier-price { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.tier-name { font-size: 0.9rem; color: var(--muted); }
.tier-monthly { grid-column: 1 / -1; flex-direction: row; justify-content: center;
  gap: 8px; }
.tier-custom { display: inline-block; margin: 2px 0; color: var(--accent);
  font-weight: 600; }
.tiers-note { color: var(--muted); font-size: 0.85rem; margin: 10px 0 0; }
.free-line { margin-top: 14px; font-size: 0.95rem; }
.free-line a { color: var(--accent); font-weight: 600; }
.sponsor { background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 20px 24px; }
.inst-tiers { width: 100%; border-collapse: collapse; margin: 14px 0;
  font-size: 0.95rem; }
.inst-tiers th, .inst-tiers td { text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--border); }
.inst-tiers th { color: var(--muted); font-weight: 600; }
.inst-tiers td:last-child { white-space: nowrap; font-weight: 600; }
.stats-total { font-size: 2.4rem; font-weight: 700; color: var(--accent);
  margin: 0 0 8px; }
.stats-chart { width: 100%; height: auto; background: var(--panel);
  border: 1px solid var(--border); border-radius: 10px; }

@media (max-width: 640px) {
  .hero h1 { font-size: 1.7rem; }
  .steps { grid-template-columns: 1fr; }
  .btn { min-width: 0; width: 100%; }
}

/* ---- /help page ---- */
.wrap.help { max-width: 920px; }
.help > h1 { font-size: 2rem; line-height: 1.2; margin: 28px 0 10px; }
.help .lead { font-size: 1.2rem; color: var(--muted); margin: 0 0 8px; }

/* Sticky in-page section nav. */
.help-toc { position: sticky; top: 0; z-index: 5; display: flex;
  flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0 8px;
  padding: 10px 14px; background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; font-size: 0.95rem; }
.help-toc .toc-label { font-weight: 700; color: var(--ink); }
.help-toc a { color: var(--accent); text-decoration: none; }
.help-toc a:hover { text-decoration: underline; }

/* Anchors clear the sticky TOC when jumped to. */
.help-section, .help-step[id] { scroll-margin-top: 72px; }
.help-section { margin: 34px 0; }
.help-section > h2 { font-size: 1.5rem; color: var(--accent);
  border-bottom: 1px solid var(--border); padding-bottom: 6px; }

/* A walkthrough row: prose beside its portrait screenshot (1544×1786). */
.help-step { display: grid; grid-template-columns: 1fr 300px; gap: 28px;
  align-items: start; margin: 22px 0; }
.help-step h3 { margin: 0 0 6px; font-size: 1.2rem; }
.help-step p { margin: 0; }
.shot { display: block; width: 300px; max-width: 100%; height: auto;
  border-radius: 10px; }

/* Task cards + Q&A blocks. */
.help-cards { display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.help-card { background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px; }
.help-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.help-card p { margin: 0; font-size: 0.95rem; }
.help-card a { color: var(--accent); white-space: nowrap; }
.help-qa { border-top: 1px solid var(--border); padding: 14px 0; }
.help-qa h3 { margin: 0 0 4px; font-size: 1.1rem; }
.help-qa p { margin: 0; }

.help-cta { background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 26px; text-align: center; }
.btn-secondary { display: inline-block; color: var(--accent);
  border: 1px solid var(--accent); padding: 12px 22px; border-radius: 8px;
  text-decoration: none; font-weight: 600; margin-left: 8px; }
.btn-secondary:hover { background: var(--accent); color: #fff; }

@media (max-width: 640px) {
  .help-step { grid-template-columns: 1fr; gap: 14px; }
  .shot { width: 100%; max-width: 360px; margin: 0 auto; }
  .btn-secondary { display: block; margin: 10px auto 0; max-width: 360px; }
}
