/* LearnForge public site: landing, sign-in, connect, privacy, errors. Same palette as the lesson videos. */
/* LearnForge brand (getlearnforge.com): white, near-black ink, LearnForge blue; Bricolage Grotesque + Geist. */
:root {
  --paper: #FFFFFF; --sand: #FAFAFA; --sand2: #EAEAEA; --card: #FFFFFF; --ink: #0A0A0A; --ink2: #171717; --text: #404040;
  --muted: #737373; --line: #EAEAEA; --line2: #D4D4D4; --accent: #2F6CF6; --accent-d: #1C5BF0; --accent-l: #EAF1FE; --green: #10B981; --danger: #DC2626;
  --display: 'Bricolage Grotesque', 'Geist', system-ui, sans-serif;
  --sans: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --r: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.03em; margin: 0; color: var(--ink); }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; }
p { margin: 0; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 58ch; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border-radius: var(--r); background: var(--ink); color: #fff;
  text-decoration: none; font: 600 15.5px/1.2 var(--sans); border: 0; cursor: pointer; transition: background .15s; }
.btn:hover { background: #000; }
.btn.red, .btn.blue { background: var(--accent); box-shadow: 0 12px 30px -10px rgba(47,108,246,.45); }
.btn.red:hover, .btn.blue:hover { background: var(--accent-d); }
.btn.ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn.ghost:hover { background: var(--sand); }
.btn.sm { padding: 9px 16px; font-size: 14.5px; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn[disabled] { opacity: .55; cursor: default; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { font-family: var(--display); font-weight: 700; font-size: 23px; text-decoration: none; letter-spacing: -.035em; display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand img { width: 30px; height: 30px; }
.brand b { color: var(--accent); font-weight: 700; }
.nav { display: flex; gap: 24px; margin-right: auto; }
.nav a, .signin { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover, .signin:hover { color: var(--ink); }
.signin b { color: var(--ink); font-weight: 600; }
.menu { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); }
.menu svg { width: 24px; height: 24px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 14.5px; }
.foot .wrap { display: flex; gap: 32px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .brand { font-size: 19px; }
.foot .brand img { width: 24px; height: 24px; }

/* simple pages (connect, privacy, 404, signed-out) */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.08; margin: 0 0 16px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc p, .doc li { color: var(--text); font-size: 16.5px; line-height: 1.7; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0 0; }
.doc li + li { margin-top: 6px; }
.doc .lead { margin-bottom: 8px; }
.doc .meta { color: var(--muted); font-size: 14px; margin-top: 18px; }
.steps { list-style: none; padding: 0; margin: 32px 0 0; counter-reset: s; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 30px 58px; }
.steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: #fff;
  font: 600 16px/38px var(--sans); text-align: center; }
.steps > li:first-child::before { background: var(--accent); }
.steps > li:not(:last-child)::after { content: ''; position: absolute; left: 18px; top: 42px; bottom: 6px; width: 2px; background: var(--line); }
.steps b { display: block; font-size: 17.5px; color: var(--ink); margin-bottom: 4px; }
.copy { display: flex; gap: 8px; margin-top: 12px; max-width: 520px; }
.copy input { flex: 1; min-width: 0; font: 500 15px var(--sans); padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); }
.say { display: block; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 8px; padding: 12px 16px; font-size: 15.5px; color: var(--ink); }

@media (max-width: 900px) {
  .nav { display: none; }
  .menu { display: inline-flex; }
  .top .wrap { gap: 14px; }
  .top .brand { margin-right: auto; }
  .top.open .nav { display: flex; flex-direction: column; gap: 0; position: absolute; top: 68px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; }
  .top.open .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .signin { display: none; }
  .top.open .nav { padding: 8px 16px 16px; }
  .top.open .nav .m-only { display: block; }
}
.m-only { display: none; }

[hidden] { display: none !important; }

/* shared header: sign-in chooser (same on every page) */
.signin-menu { position: relative; }
.signin-menu > button { all: unset; cursor: pointer; color: var(--muted); font-weight: 500; font-size: 15px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; }
.signin-menu > button:hover, .signin-menu > button[aria-expanded="true"] { color: var(--ink); }
.signin-menu > button svg { width: 14px; height: 14px; transition: transform .15s; }
.signin-menu > button[aria-expanded="true"] svg { transform: rotate(180deg); }
.signin-menu > button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.pop { display: none; position: absolute; right: -8px; top: calc(100% + 10px); width: 320px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 50px -12px rgba(10,10,10,.18), 0 8px 16px -8px rgba(10,10,10,.06); z-index: 40; }
.pop.open { display: block; }
.pop a { display: grid; grid-template-columns: 34px 1fr; gap: 2px 12px; padding: 10px; border-radius: 10px; text-decoration: none; }
.pop a:hover, .pop a:focus-visible { background: var(--sand); outline: none; }
.pop a i { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.pop a b { font-size: 15px; color: var(--ink); }
.pop a small { color: var(--muted); font-size: 13px; }
/* product icons */
.ic { color: #fff; }
.ic svg { width: 60%; height: 60%; }
.ic.audit { background: var(--ink); }
.ic.chat { background: linear-gradient(135deg, #2F6CF6, #7AA8FF); }
@media (max-width: 900px) { .signin-menu { display: none; } }
