/* Public pages (home, privacy, terms) - served ahead of sign-in (Program.cs),
   so they can't use style.css. Colors mirror style.css's :root tokens, same
   as login.html. */
:root { --bg: #0e1424; --panel: #172036; --border: #2a3554; --line: #243050; --text: #e8edf7; --muted: #a3aec6; --accent: #6fa3ff; --accent-text: #0b1222; --accent-shadow: #3d6fcc; --press: rgba(0, 0, 0, 0.35); }
:root[data-theme="light"] { --bg: #EEF5FF; --panel: #ffffff; --border: #d5dfee; --line: #E1E8F3; --text: #1F2A44; --muted: #55607A; --accent: #2F6FDB; --accent-text: #ffffff; --accent-shadow: #1f4fa8; --press: rgba(31, 42, 68, 0.08); }
* { box-sizing: border-box; }
body {
  margin: 0; font-family: var(--font-body); font-weight: 500;
  background: var(--bg); color: var(--text); line-height: 1.55;
}
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* Docked: stays put while the page scrolls. */
header.site { position: sticky; top: 0; z-index: 10; background: var(--panel); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
/* The logo mark on a little blue tile, as in the app's header. */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; padding: 6px; border-radius: 10px; color: #fff; background: #2F6FDB; box-shadow: 0 3px 0 #1f4fa8; }
.brand-name { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; letter-spacing: -0.005em; color: var(--text); }
.signin { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1.5px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; font-size: 0.95rem; font-weight: 700; white-space: nowrap; }
.signin:hover { border-color: var(--accent); }

/* main.wrap, not main - .wrap's padding shorthand would otherwise zero the
   top and bottom. */
main.wrap { padding-top: 40px; padding-bottom: 56px; }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; }
h1 { font-size: 2.2rem; line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.005em; }
h2 { font-size: 1.3rem; margin: 32px 0 8px; }
h3 { font-size: 1.1rem; margin: 20px 0 6px; }
p, li { color: var(--text); }
.lede { font-size: 1.1rem; color: var(--muted); margin: 0 0 24px; }
.updated { color: var(--muted); font-size: 0.9rem; margin: 0 0 24px; }
ul { padding-left: 22px; }
li { margin: 4px 0; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 40px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 10px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--border); color: var(--text); background: var(--panel); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); box-shadow: 0 3px 0 var(--accent-shadow); }
.btn:hover { filter: brightness(1.08); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 3px 0 var(--press); padding: 18px 20px; }
.feature h3 { margin: 0 0 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.note { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 3px 0 var(--press); padding: 18px 20px; }

footer.site { border-top: 1px solid var(--border); color: var(--muted); font-size: 0.85rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 16px; padding-top: 18px; padding-bottom: 24px; }
footer.site a { color: var(--muted); }
