/* acogitocoach.com: the standard header and footer of every page (release 1, plan section 11 step 8;
   demos/grades3-12/FRONT-DOOR-COPY-R2.md section 4). The header mirrors cogitocoach.com's nav (frontend/css/styles.css:
   nav, .nav-links, .nav-cta, .mobile-menu-btn) with the K-12 site's tokens (frontend-k12/index.html :root): purple
   #4d59c5 -> #5b3082, text #1a202c / #4a5568 / #596780, lines #e2e8f0. `site-` prefixed so it never meets a page's
   own classes. Two kinds: the site's (anchors on the front door, Log in, the free lesson) and a flow's (logo, Log in). */
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
section[id]{scroll-margin-top:84px}   /* an anchor lands below the sticky header */

.site-nav{position:sticky;top:0;z-index:100;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);
  box-shadow:0 2px 20px rgba(0,0,0,.05);padding:14px 0;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  -webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto}   /* as cogitocoach.com's nav: antialiased read thinner */
.site-nav-in{max-width:1140px;margin:0 auto;padding:0 20px;display:flex;align-items:center;gap:24px}
.site-logo{display:flex;align-items:center;gap:10px;margin-right:auto;text-decoration:none;color:#1a202c;
  font-weight:800;font-size:1.2rem;min-height:44px}
.site-logo img{border-radius:8px}
/* The logo lockup matches cogitocoach.com's (frontend/css/styles.css .logo-icon, .logo-name, .logo-slogan; Leon
   2026-11-22: "acogito should be consistent ... add a slogan 'Learn with AI. Think for yourself' and fix menu fonts
   to be the same"): the avatar on the brand square, the name in the brand gradient, the slogan under it. */
.site-nav .site-logo img{width:50px;height:50px;object-fit:contain;border-radius:12px;
  background:linear-gradient(135deg,#4d59c5 0%,#5b3082 100%);box-shadow:0 4px 15px rgba(102,126,234,.3)}
.site-logo-text{display:flex;flex-direction:column}
.site-logo-name{font-size:1.5rem;font-weight:800;line-height:1.25;background:linear-gradient(135deg,#4d59c5 0%,#5b3082 100%);
  -webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.site-logo-slogan{font-size:.85rem;font-weight:600;line-height:1.5;color:#4d59c5}
.site-links{display:flex;align-items:center;gap:26px;list-style:none;margin:0;padding:0}
.site-links a,.site-login-link{text-decoration:none;color:#4a5568;font-weight:600;font-size:1rem}
.site-links a:hover,.site-login-link:hover{color:#4d59c5}
.site-login-link{display:inline-flex;align-items:center;min-height:44px;padding:0 4px}
.site-cta{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box;padding:11px 24px;
  border-radius:30px;background:linear-gradient(135deg,#4d59c5 0%,#5b3082 100%);color:#fff;text-decoration:none;
  font-weight:700;white-space:nowrap;box-shadow:0 10px 28px rgba(77,89,197,.32);transition:transform .15s}
.site-cta:hover{transform:translateY(-2px)}
.site-menu-btn{display:none;min-width:44px;min-height:44px;padding:8px;border:none;background:none;cursor:pointer;
  font-size:1.5rem;color:#1a202c}
.site-nav.flow{position:static;padding:10px 0}
:focus-visible{outline:3px solid #4d59c5;outline-offset:3px;border-radius:6px}
@media (max-width:768px){
  .site-nav{padding:10px 0}
  .site-nav-in{position:relative;gap:10px}
  .site-menu-btn{display:flex;align-items:center;justify-content:center}
  .site-links{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;
    padding:8px 20px 20px;background:#fff;box-shadow:0 4px 20px rgba(0,0,0,.15);border-radius:0 0 12px 12px}
  .site-links.show{display:flex}
  .site-links a{display:block;padding:14px 0;border-bottom:1px solid #e2e8f0;font-weight:500}
  .site-cta{padding:10px 16px;font-size:.92rem}
  .site-logo-slogan{display:none}   /* as cogitocoach.com: the slogan leaves the header with the menu */
  .site-nav .site-logo img{width:40px;height:40px}
  .site-logo-name{font-size:1.25rem}
}
/* Phones: "Cogito Coach" cannot share one line with the button, so the word stacks as a two-line lockup. */
@media (max-width:480px){.site-nav-in .site-logo{gap:8px}.site-nav-in .site-logo-name{font-size:1rem;line-height:1.1}}
@media (max-width:360px){.site-nav .site-logo-text{display:none}}   /* the smallest phones keep the button, not the word */

.site-foot{background:#1a202c;color:#cbd5e0;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  padding:44px 0 28px}
.site-foot-in{max-width:1140px;margin:0 auto;padding:0 20px;display:flex;flex-wrap:wrap;gap:24px 48px;
  align-items:flex-start;justify-content:space-between}
.site-foot .site-logo{color:#fff;margin:0}
.site-foot-brand p{margin:8px 0 0;color:#cbd5e0;font-size:.95rem}
.site-foot ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px 26px}
.site-foot li a{display:inline-flex;align-items:center;min-height:44px;color:#e2e8f0;text-decoration:none;font-weight:600;font-size:.95rem}
.site-foot li a:hover{color:#F5C542}
.site-foot-legal{max-width:1140px;margin:18px auto 0;padding:0 20px;font-size:.82rem;color:#a0aec0}
.site-foot.flow{background:transparent;padding:18px 0 26px}
.site-foot.flow ul{justify-content:center}
.site-foot.flow li a{color:#596780;font-weight:600;font-size:.88rem}
.site-foot.flow li a:hover{color:#4d59c5}
/* the trust badges, as on cogitocoach.com's footer (Leon 2026-11-30: add them to both sites) */
.site-foot-badge{display:inline-block;margin-left:10px;padding:4px 10px;border-radius:4px;background:#1a365d;color:#90cdf4;font-size:.75rem;font-weight:600;text-decoration:none;vertical-align:middle}
.site-foot-badge:hover{background:#2a4365}
.site-foot-badges{margin:6px 0 0;text-align:center}.site-foot-badges .site-foot-badge:first-child{margin-left:0}

/* Placeholder pages (each path in plan section 7.2 until its phase builds it). */
.site-stub{max-width:720px;margin:72px auto;padding:0 20px;color:#1a202c;min-height:40vh;
  font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}
.site-stub h1{margin:0 0 12px;font-size:2rem;line-height:1.2}
.site-stub p{margin:0;color:#4a5568;font-size:1.05rem;line-height:1.6}

/* Long-form pages: ESA, Privacy, Terms (2026-11-20) */
.doc{max-width:760px;margin:56px auto 72px;padding:0 20px;color:#1a202c;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif}.doc h1{margin:0 0 8px;font-size:2rem;line-height:1.2}.doc .upd{margin:0 0 26px;color:#596780;font-size:.92rem}.doc h2{margin:30px 0 8px;font-size:1.2rem}.doc p,.doc li{color:#4a5568;font-size:1.02rem;line-height:1.65}.doc p{margin:0 0 12px}.doc ul,.doc ol{margin:6px 0 12px;padding-left:22px}.doc a{color:#4d59c5}.doc .cta{display:inline-flex;align-items:center;min-height:48px;padding:0 22px;border-radius:999px;background:linear-gradient(135deg,#4d59c5,#5b3082);color:#fff;font-weight:800;text-decoration:none}
