/* Homepage header, for marketing pages that do not load site.css + home.css.
   The markup is the same bar as index.html (header.hdr): logo, section links,
   Docs, Blog, GitHub, theme, Book a call, and the mobile menu.
   Scoped under header.hdr so the docs/blog stylesheet's .nav (the old bar)
   does not restyle this one. Docs keep their own header. */

header.hdr{--ease-out:cubic-bezier(.2,.7,.2,1);position:sticky;top:0;z-index:50;background:color-mix(in srgb,var(--ok-bg) 92%,transparent);backdrop-filter:blur(8px);border-bottom:1px solid var(--ok-border)}
header.hdr .wrap{display:flex;align-items:center;gap:28px;height:76px;max-width:1440px;margin:0 auto;padding:0 80px;width:auto}
header.hdr .brand{display:flex;align-items:center;min-height:44px;line-height:0;flex:none;text-decoration:none}
header.hdr .brand img{display:block;height:30px;width:auto;max-width:none}
header.hdr .brand img.logo-dark{display:none}
[data-theme="dark"] header.hdr .brand img.logo-light{display:none}
[data-theme="dark"] header.hdr .brand img.logo-dark{display:block}
header.hdr .nav{position:static;display:flex;gap:26px;margin-left:auto;align-items:center;height:auto;background:none;border:0;backdrop-filter:none;z-index:auto}
header.hdr .nav a{position:relative;display:inline-flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;color:var(--ok-text);text-decoration:none;font:500 16px/1 var(--ok-font-text)}
header.hdr .nav a::after{content:"";position:absolute;left:0;right:0;bottom:12px;height:2px;border-radius:2px;background:currentColor;transform:scaleX(0);transform-origin:left;transition:transform .2s var(--ease-out)}
header.hdr .nav a[aria-current="location"]{color:var(--ok-link)}
header.hdr .nav a[aria-current="location"]::after{transform:scaleX(1)}
header.hdr .hdr-actions{display:flex;gap:12px;align-items:center;flex:none}
header.hdr .theme-btn{width:44px;height:44px;border-radius:10px;border:1px solid var(--ok-border);background:var(--ok-surface);color:var(--ok-text);display:inline-flex;align-items:center;justify-content:center;cursor:pointer;padding:0}
header.hdr .theme-btn svg{width:20px;height:20px}
header.hdr .theme-btn .moon{display:none}
[data-theme="dark"] header.hdr .theme-btn .sun{display:none}
[data-theme="dark"] header.hdr .theme-btn .moon{display:block}
header.hdr .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;text-decoration:none;cursor:pointer;white-space:nowrap;border-radius:10px;border:1.5px solid transparent}
header.hdr .btn-primary{background:var(--ok-primary);color:var(--ok-text-on-primary);border-color:transparent}
header.hdr .btn-sm{font:600 15px/1 var(--ok-font-text);min-height:44px;padding:0 16px}
header.hdr .menu{display:none}
header.hdr .menu summary{list-style:none;cursor:pointer;height:44px;padding:0 14px;border:1px solid var(--ok-border);border-radius:10px;display:flex;align-items:center;font:600 15px/1 var(--ok-font-text);background:var(--ok-surface);color:var(--ok-text)}
header.hdr .menu summary::-webkit-details-marker{display:none}
header.hdr .menu nav{position:absolute;right:0;top:52px;background:var(--ok-surface);border:1px solid var(--ok-border);border-radius:14px;padding:10px;display:grid;min-width:240px;box-shadow:0 12px 32px color-mix(in srgb,var(--ok-ink) 14%,transparent);z-index:2}
header.hdr .menu nav a{color:var(--ok-text);text-decoration:none;padding:12px 14px;border-radius:8px;font:500 17px/1 var(--ok-font-text);min-height:44px;display:flex;align-items:center}

@media (max-width:1180px){
  header.hdr .wrap{padding:0 48px}
  header.hdr .nav{display:none}
  header.hdr .menu{display:block;margin-left:auto;position:relative}
}
@media (max-width:760px){
  header.hdr .wrap{height:64px;gap:12px;padding:0 20px}
  header.hdr .brand img{height:22px}
  header.hdr .btn-sm{display:none}
}
@media (hover:hover) and (pointer:fine){
  header.hdr .btn-primary:hover{background:var(--ok-primary-hover);color:var(--ok-text-on-primary)}
  header.hdr .nav a:hover{color:var(--ok-link);text-decoration:none}
  header.hdr .nav a:hover::after{transform:scaleX(1)}
  header.hdr .menu nav a:hover{background:var(--ok-surface-selected);color:var(--ok-text)}
}
@media (prefers-reduced-motion:reduce){
  header.hdr .nav a::after{transition:none}
}
