/* Website Sprint 1 · the shared header and footer of every public page.
 * Markup: src/marketing/siteChrome.ts (static pages get it from
 * npm run chrome:build). Figma 8rcqPM95zXXBMghQNuJLxk: navigation 676:541,
 * 676:597, 676:601, focus 696:2362; footer 698:2709, 698:2750.
 * Tokens: Ocean Depths, Ivory Hull, Sunset Orange, Harbor Mist (tokens.css),
 * with their values as fallbacks so a page without tokens.css still draws.
 * Every selector carries two classes so a page's own resets (for example
 * `.ymh-wrapper *` and `.ymh-wrapper a` on the home page) never win. */

.s1-nav, .s1-foot {
  --s1-ocean: var(--brand-ocean-depths, #171c2f);
  --s1-ivory: var(--brand-ivory-hull, #f4f0ea);
  --s1-orange: var(--brand-sunset-orange, #fda100);
  --s1-mist: var(--brand-harbor-mist, #dcd8d6);
  --s1-link: var(--text-link, #222f59);
  --s1-sans: "Montserrat", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ── The bar ───────────────────────────────────────────────────────── */
.s1-nav.s1-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; font-family: var(--s1-sans); -webkit-font-smoothing: antialiased; }
.s1-nav .s1-bar { height: var(--nav-h, 80px); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 40px; margin: 0; box-sizing: border-box; }
.s1-nav.s1-nav--dark { background-color: var(--s1-ocean); color: #fff; }
.s1-nav.s1-nav--light { background-color: var(--s1-ivory); color: var(--s1-ocean); }
/* Over a full bleed hero: clear at the top, Ocean Depths as the page
 * scrolls (home and pricing write --nav-opacity and --nav-blur). */
.s1-nav.s1-nav--overlay { background-color: rgba(23, 28, 47, var(--nav-opacity, 0)); -webkit-backdrop-filter: blur(var(--nav-blur, 0px)); backdrop-filter: blur(var(--nav-blur, 0px)); }

.s1-nav .s1-logo { display: inline-flex; align-items: center; flex: none; min-height: 44px; margin: 0; padding: 0; }
.s1-nav .s1-logo img { display: block; width: 168px; height: 47px; max-width: none; }

.s1-nav .s1-links { display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; }
.s1-nav .s1-link,
.s1-nav .s1-signin { position: relative; display: inline-flex; align-items: center; margin: 0; padding: 0; font-family: var(--s1-sans); font-size: 14px; font-weight: 500; line-height: 22px; letter-spacing: 0; text-transform: none; white-space: nowrap; color: inherit; text-decoration: none; background: none; border: 0; }
/* 44 px tap targets around the drawn 22 px links, so the focus ring keeps
 * the drawn size (696:2362) and the row does not move. */
.s1-nav .s1-link::after,
.s1-nav .s1-signin::after { content: ""; position: absolute; left: -8px; right: -8px; top: 50%; height: 44px; transform: translateY(-50%); }
.s1-nav .s1-link:hover,
.s1-nav .s1-signin:hover { text-decoration: underline; text-underline-offset: 4px; }
/* The current page: underlined; Sunset Orange on a dark band, Ocean Depths
 * (semibold) on a light page (676:541). */
.s1-nav .s1-link[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }
.s1-nav--dark .s1-link[aria-current="page"] { color: var(--s1-orange); }
.s1-nav--light .s1-link[aria-current="page"] { font-weight: 600; }

.s1-nav .s1-account { display: flex; align-items: center; gap: 20px; flex: none; margin: 0; padding: 0; }
.s1-nav .s1-start { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; box-sizing: border-box; margin: 0; padding: 10px 18px; border: 1px solid currentColor; border-radius: 999px; font-family: var(--s1-sans); font-size: 14px; font-weight: 500; line-height: 22px; letter-spacing: 0; text-transform: none; white-space: nowrap; color: inherit; text-decoration: none; background: transparent; }
.s1-nav .s1-start:hover { background: rgba(255, 255, 255, .08); }
.s1-nav--light .s1-start:hover { background: rgba(23, 28, 47, .06); }

.s1-nav .s1-menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -10px 0 0; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; color: inherit; }
.s1-nav .s1-menu-btn img { display: block; width: 24px; height: 24px; max-width: none; }

/* Focus (696:2362, 694:1984): 3 px Sunset Orange, 2 px offset, keyboard only. */
.s1-nav a:focus-visible, .s1-nav button:focus-visible,
.s1-foot a:focus-visible { outline: 3px solid var(--s1-orange); outline-offset: 2px; border-radius: 4px; }
.s1-nav .s1-start:focus-visible { border-radius: 999px; }
.s1-nav a:focus:not(:focus-visible), .s1-nav button:focus:not(:focus-visible) { outline: none; }

/* ── Phone and tablet: Sign in stays beside the menu button (676:597) ── */
@media (max-width: 1023.98px) {
  .s1-nav .s1-bar { padding: 0 16px; }
  .s1-nav .s1-logo img { width: 134px; height: 37.5px; }
  .s1-nav .s1-links, .s1-nav .s1-start { display: none; }
  .s1-nav .s1-account { gap: 6px; }
  .s1-nav .s1-signin { font-weight: 400; padding: 0 4px; }
  .s1-nav .s1-signin::after { left: -4px; right: -4px; }
  .s1-nav .s1-menu-btn { display: inline-flex; }
}

/* ── The phone menu (676:601): full screen, Ivory Hull ───────────────── */
.s1-nav .s1-menu { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; box-sizing: border-box; margin: 0; padding: 20px 20px 32px; overflow-y: auto; background: var(--s1-ivory); color: var(--s1-ocean); }
.s1-nav .s1-menu[hidden] { display: none; }
.s1-nav .s1-menu-top { display: flex; align-items: center; justify-content: space-between; margin: 0 0 24px; padding: 0; }
.s1-nav .s1-menu-top .s1-logo img { width: 134px; height: 37.5px; }
.s1-nav .s1-menu-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -10px 0 0; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.s1-nav .s1-menu-close img { display: block; width: 24px; height: 24px; max-width: none; }
.s1-nav .s1-menu-links { list-style: none; margin: 0; padding: 0; }
.s1-nav .s1-menu-row { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: 0; padding: 16px 0; border-bottom: 1px solid var(--s1-mist); font-family: var(--s1-sans); font-size: 20px; font-weight: 500; line-height: 30px; letter-spacing: 0; text-transform: none; color: var(--s1-ocean); text-decoration: none; }
.s1-nav .s1-menu-row[aria-current="page"] { font-weight: 600; text-decoration: underline; text-underline-offset: 5px; }
.s1-nav .s1-menu-row img { display: block; width: 20px; height: 20px; max-width: none; flex: none; }
.s1-nav .s1-menu-account { display: flex; flex-direction: column; gap: 12px; margin: auto 0 0; padding: 24px 0 0; }
.s1-nav .s1-menu-start,
.s1-nav .s1-menu-signin { display: flex; align-items: center; justify-content: center; box-sizing: border-box; width: 100%; margin: 0; border-radius: 10px; font-family: var(--s1-sans); font-size: 16px; font-weight: 600; line-height: 24px; letter-spacing: 0; text-transform: none; color: var(--s1-ocean); text-decoration: none; }
.s1-nav .s1-menu-start { min-height: 48px; padding: 12px 24px; background: var(--s1-orange); border: 0; }
.s1-nav .s1-menu-signin { min-height: 52px; padding: 13px 24px; background: transparent; border: 1px solid var(--s1-ocean); }
/* The page behind the open menu does not scroll. */
html.s1-menu-open, html.s1-menu-open body { overflow: hidden; }
/* A backdrop filter makes the bar the containing block of the fixed menu,
 * which would shrink the menu to the bar's 80 px; drop it while open. */
html.s1-menu-open .s1-nav.s1-nav { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ── The footer (698:2709, 698:2750) ───────────────────────────────── */
footer.s1-foot { display: flex; flex-direction: column; gap: 40px; box-sizing: border-box; margin: 0; padding: 72px 40px; background: var(--s1-ocean); color: #fff; font-family: var(--s1-sans); -webkit-font-smoothing: antialiased; text-align: left; }
.s1-foot .s1-foot-cols { display: flex; align-items: flex-start; gap: 64px; margin: 0; padding: 0; }
.s1-foot .s1-foot-brand { display: flex; flex-direction: column; gap: 16px; flex: 0 1 420px; min-width: 0; margin: 0; padding: 0; }
.s1-foot .s1-foot-brand img { display: block; width: 168px; height: 47px; max-width: none; margin: 0; }
.s1-foot .s1-foot-brand p { margin: 0; padding: 0; font-size: 14px; font-weight: 400; line-height: 22px; color: #fff; }
.s1-foot .s1-foot-col { display: flex; flex-direction: column; gap: 12px; flex: none; margin: 0; padding: 0; }
.s1-foot .s1-foot-head { margin: 0; padding: 0; font-size: 11px; font-weight: 500; line-height: 16px; letter-spacing: .18em; text-transform: uppercase; color: #fff; }
.s1-foot .s1-foot-col ul { display: flex; flex-direction: column; gap: 12px; list-style: none; margin: 0; padding: 0; }
.s1-foot .s1-foot-col li { margin: 0; padding: 0; font-size: 14px; font-weight: 400; line-height: 22px; color: #fff; }
.s1-foot .s1-foot-col li[hidden] { display: none; }
.s1-foot .s1-foot-col a,
.s1-foot .s1-foot-links a { position: relative; display: inline-block; color: #fff; text-decoration: none; font-weight: 400; }
/* 44 px tap targets without moving the drawn rows: a transparent hit area
 * around each link (handoff: "the drawn size may be smaller"). */
.s1-foot .s1-foot-col a::after,
.s1-foot .s1-foot-links a::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 44px; transform: translateY(-50%); }
.s1-foot .s1-foot-col a:hover,
.s1-foot .s1-foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.s1-foot .s1-foot-rule { height: 1px; margin: 0; padding: 0; background: rgba(255, 255, 255, .14); }
.s1-foot .s1-foot-legal { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: 0; padding: 0; font-size: 12px; line-height: 18px; color: #fff; }
.s1-foot .s1-foot-links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 0; padding: 0; }
.s1-foot .s1-foot-copy { margin: 0; padding: 0; font-size: 12px; line-height: 18px; color: #fff; white-space: nowrap; }

@media (max-width: 767.98px) {
  footer.s1-foot { padding: 48px 20px; }
  .s1-foot .s1-foot-cols { flex-direction: column; gap: 32px; }
  .s1-foot .s1-foot-brand { flex: none; }
  .s1-foot .s1-foot-legal { flex-direction: column; gap: 0; }
  .s1-foot .s1-foot-copy { white-space: normal; }
}
