/* The public header and footer (T-502, site file): the skip link, .site-top and .site-foot, shared by /, /pricing,
   /help, /terms, /privacy, /payment-soon and the 404 page (site-chrome.js draws them). Load after controls.css.
   Only site- classes and tokens here; no kit control is restyled (R258): "Sign in" is the kit's .btn-2.sm as it is,
   and the header's row places it (auto margins and the row's own justification), never a rule on the button. */

/* ---------------------------------------------------------------- the skip link: unseen until focused, then a white
   pill at the top left with the ink ring (base.css :focus-visible) */
.site-skip {
  position: absolute; left: var(--s4); top: var(--s3); z-index: 20;
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: var(--white); color: var(--ink); box-shadow: var(--shadow-panel);
  font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.site-skip:not(:focus) {
  width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); box-shadow: none;
}

/* ---------------------------------------------------------------- the header: 64 px (56 px under 720), on the ground,
   not sticky; the line under it once the page is scrolled past 8 px (site-chrome.js sets .site-scrolled). The line is
   drawn inside the fixed height, so it shifts nothing. */
.site-top { height: 64px; background: var(--ground); }
.site-top.site-scrolled { border-bottom: 1px solid var(--line); }
.site-top-in { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); height: 100%; }
.site-nav { display: flex; align-items: center; gap: var(--s5); margin-left: 22px; margin-right: auto; }
/* the side padding, not the 44 px minimum, sets the spacing, so a short word ("FAQ") sits as far from its neighbours
   as a long one */
.site-nav-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 6px;
  font-size: 16px; font-weight: 500; color: var(--body); text-decoration: none;
}
/* every :hover look sits in @media (hover: hover): a touch screen would keep it after the tap (controls.css, 2026-11-16) */
@media (hover: hover) { .site-nav-link:hover { color: var(--ink); } }
/* the current page: ink and underlined (never colour alone) */
.site-nav-link[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }

/* SR8: under 720 px the three links go; the wordmark and "Sign in" stay, at the two ends of the row */
@media (max-width: 719.98px) {
  .site-top { height: 56px; }
  .site-nav { display: none; }
}

/* ---------------------------------------------------------------- the footer */
.site-foot { border-top: 1px solid var(--line); padding: var(--s5) 0 max(var(--s6), env(safe-area-inset-bottom)); }
.site-foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) 28px; }
.site-foot-id { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s1) var(--s4); }
.site-foot-mark {
  font-family: var(--display); font-optical-sizing: auto; font-weight: 800; font-size: 20px; letter-spacing: -.05em; line-height: 1;
  color: var(--ink);
}
/* the © line is a legal line (base.css .legal, muted), one size up */
.site-foot-copy { font-size: 15px; }
/* the last word ends at the column edge, as "Sign in" does above (the links carry 6 px of side padding) */
.site-foot-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s4); margin-left: auto; margin-right: -6px; }
/* each a 44 x 44 target, muted on the ground (5.4:1) */
.site-foot-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 6px; border-radius: 6px;
  font-size: 16px; font-weight: 500; color: var(--muted); text-decoration: none;
}
@media (hover: hover) { .site-foot-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }

/* at a phone's width the six links sit in two rows of three, 8 px between the rows; the columns 24 px apart (the links
   carry no side padding here, so at 8 px "How it works Pricing FAQ" read as one run of words; 2026-11-16) */
@media (max-width: 719.98px) {
  .site-foot-in { flex-direction: column; align-items: flex-start; }
  .site-foot-nav { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: var(--s2) var(--s5); margin-left: 0; margin-right: 0; }
  .site-foot-link { justify-content: flex-start; padding: 0; } /* the words line up with the wordmark's left edge */
}

/* R272: in a contrast theme the focused skip link keeps an edge, and the header's line and the footer's rule stay */
@media (forced-colors: active) {
  .site-skip:focus { border: 1px solid CanvasText; }
  .site-top.site-scrolled { border-bottom-color: CanvasText; }
  .site-foot { border-top-color: CanvasText; }
}
