/* evidor.ai header and footer for /pilot, /contact and /privacy: the home's chrome from Esme's v1.1 (index.html), restated
   with every rule scoped to header.top / footer.foot, so the pages' own styles don't reach it and it doesn't reach their
   bodies (Echo, 31 Oct: chrome only, bodies unchanged). The home keeps its own copy in its <style>: change both together. */
header.top, footer.foot {
  --face: "Inter", Arial, Helvetica, sans-serif;
  --page: #FAFAF7; --surface: #FFFFFF; --ink: #1A1F2E; --ink2: #5E6470; --line: #E5E2D8; --line2: #DAD6CA;
  --brg: #004225; --amber: #C76E3A; --amber-hover: #B05D2E; --wrap: 1240px;
  font-family: var(--face); font-size: 17px; line-height: 1.55; color: var(--ink);
  -webkit-font-smoothing: antialiased; font-feature-settings: "ss01", "cv11";
}
html { scroll-padding-top: 88px; }   /* the sticky header must not cover #book and the other in-page targets */
header.top .wrap, footer.foot .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 48px); }
header.top a, footer.foot a { color: inherit; }
footer.foot p { margin: 0; }
header.top a:focus-visible, header.top button:focus-visible, footer.foot a:focus-visible { outline: 2px solid var(--brg); outline-offset: 3px; border-radius: 4px; }
header.top .wordmark, footer.foot .wordmark { font-weight: 500; letter-spacing: -0.02em; color: var(--brg); line-height: 1; text-decoration: none; font-size: 24px; }
header.top .wordmark .ai, footer.foot .wordmark .ai { font-weight: 400; opacity: 0.6; }

/* the one primary action */
header.top .btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; padding: 15px 26px; font: 500 16px/1 var(--face); letter-spacing: -0.005em; text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .18s ease; }
header.top .btn-pilot { background: var(--amber); color: #FFFFFF; }
header.top .btn-pilot:hover { background: var(--amber-hover); }
header.top .btn-sm { padding: 11px 18px; font-size: 14px; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--page) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 28px; height: clamp(64px, 5.6vw, 76px); }
header.top .wordmark { font-size: clamp(22px, 1.9vw, 26px); }
header.top .nav { display: flex; gap: 28px; margin-left: auto; }
header.top .nav a { text-decoration: none; font-size: 15px; font-weight: 500; }
header.top .nav a:hover { color: var(--brg); }
header.top .menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface); color: var(--ink); align-items: center; justify-content: center; padding: 0; cursor: pointer; }
header.top .menu-btn svg { width: 18px; height: 18px; }
header.top .drawer { display: none; border-top: 1px solid var(--line); height: auto; }
header.top .drawer a { display: block; padding: 14px 0; text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line); }
header.top .drawer a:last-child { border-bottom: 0; }

/* footer */
footer.foot { border-top: 1px solid var(--line); background: var(--page); padding-block: clamp(44px, 5vw, 64px) 40px; }
footer.foot .top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
footer.foot .wordmark { font-size: 40px; }
footer.foot nav { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-left: auto; }
footer.foot nav a { font-size: 15px; font-weight: 500; color: var(--brg); text-decoration: none; }
footer.foot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
footer.foot .legal-sub { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: var(--ink2); }
footer.foot .legal-sub.tm { font-size: 11.5px; }
footer.foot .legal { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--ink2); }
footer.foot .legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
footer.foot .filing { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--ink2); }

@media (max-width: 720px) {
  header.top .nav { display: none; }
  header.top .menu-btn { display: inline-flex; }
  header.top .wrap { gap: 12px; }
  header.top .btn { margin-left: auto; }
  header.top .drawer.open { display: block; }
  footer.foot nav { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) { footer.foot .wordmark { font-size: 36px; } }
@media (max-width: 400px) { header.top .wrap { gap: 8px; } header.top .btn { padding: 10px 14px; } }

/* Page bodies on /pilot, /contact and /privacy line up with the header (Echo, 31 Oct; Esme v1.2): each body .container's
   left edge sits on the header's .wrap gutter, and its content keeps its own width (1100px less the two 32px gutters).
   Padding and margin only: no words, elements or order change. */
main .container {
  --edge: calc(max(0px, (100% - 1240px) / 2) + clamp(16px, 4vw, 48px));
  max-width: none;
  margin: 0;
  padding-left: var(--edge);
  padding-right: max(var(--edge), calc(100% - var(--edge) - 1036px));
}
