/* The landing's public header, shared by every anonymous page. */
body > header.pv8-public-header .landing-mobile-register,
body > header.pv8-public-header .landing-menu-toggle,
body > header.pv8-public-header .landing-mobile-drawer:not([open]),
body > header.pv8-public-header .landing-language-code{display:none}
body > header.pv8-public-header .landing-language{display:contents}
body[data-public-page]{margin:0}
body > header.pv8-public-header{--landing-max:1180px;font:15px/1.55 var(--pv8-github-sans),system-ui,sans-serif;flex-direction:row}
body > header.pv8-public-header,body > header.pv8-public-header *{box-sizing:border-box;margin:0}
body > header.pv8-public-header .cta{
  background:#1e303e;border:1px solid #1e303e;border-radius:999px;box-shadow:none;color:#fffdf8;cursor:pointer;
  font:600 15px var(--pv8-github-sans),system-ui,sans-serif;letter-spacing:-.01em;min-height:44px;padding:10px 18px;text-decoration:none;
  transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease;
}
body > header.pv8-public-header .cta:hover{background:#10212f;border-color:#10212f;box-shadow:0 11px 28px rgba(27,43,55,.16);color:#fff;transform:translateY(-1px)}
body > header.pv8-public-header .header-login input{background:var(--surface-1);border-radius:7px;font:14px var(--pv8-github-sans),system-ui,sans-serif;padding:8px 10px}
body > header.pv8-public-header .header-login input:focus{border-color:var(--series-1);outline:0}
body > header.pv8-public-header .hmsg{color:var(--serious);font-size:12px;min-width:0}
/* A quiet header: registration is primary, authentication is available but
   no longer consumes the first screen with three form controls. */
body > header.pv8-public-header {
  align-items:center;
  background:rgba(255,255,255,.94);
  border-bottom:1px solid #d7dcdf;
  box-shadow:none;
  display:flex;
  flex-wrap:nowrap;
  gap:22px;
  min-height:68px;
  padding:10px max(20px,calc((100vw - var(--landing-max))/2));
  position:sticky;
  top:0;
  z-index:1000;
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
body > header.pv8-public-header .pv8-brand { flex:0 0 auto; }
body > header.pv8-public-header .pv8-brand h1 {
  color:#101e2a;
  font-family:var(--pv8-github-sans),var(--pv8-github-sans),system-ui,sans-serif;
  font-size:23px;
  font-weight:700;
  letter-spacing:-.04em;
}
body > header.pv8-public-header .pv8-brand h1 span { color:var(--pv8-primary); }
/* 9px strapline: #6c757b measured 4.44:1, just under the 4.5 body minimum */
body > header.pv8-public-header .pv8-tagline { color:#656d73; }
body > header.pv8-public-header .landing-nav {
  align-items:center;
  display:flex;
  flex-wrap:nowrap;
  gap:4px;
  margin-left:auto;
}
body > header.pv8-public-header .landing-nav > a {
  border-radius:7px;
  color:#455057;
  font-size:13px;
  font-weight:550;
  padding:9px 11px;
  text-decoration:none;
}
body > header.pv8-public-header .landing-nav > a:hover { background:#eaf0f4; color:var(--series-4); }
body > header.pv8-public-header .landing-register {
  font-size:13px;
  min-height:40px;
  padding:9px 16px;
}
body > header.pv8-public-header .landing-login { position:relative; }
body > header.pv8-public-header .landing-login > summary {
  border-radius:7px;
  color:#273947;
  cursor:pointer;
  font-size:13px;
  font-weight:650;
  list-style:none;
  padding:9px 11px;
}
body > header.pv8-public-header .landing-login > summary::-webkit-details-marker { display:none; }
body > header.pv8-public-header .landing-login > summary:hover,
body > header.pv8-public-header .landing-login[open] > summary { background:#eaf0f4; }
body > header.pv8-public-header .landing-login-popover {
  background:#fff;
  border:1px solid #d7dcdf;
  border-radius:10px;
  box-shadow:0 18px 44px rgba(15,30,42,.14);
  min-width:310px;
  max-width:calc(100vw - 28px);
  padding:15px;
  position:absolute;
  right:0;
  top:calc(100% + 9px);
}
body > header.pv8-public-header .landing-login-popover .header-login {
  display:grid;
  gap:9px;
  margin:0;
  width:100%;
}
body > header.pv8-public-header .landing-login-popover .header-login input {
  border:1px solid #bcc4c9;
  min-height:42px;
  width:100%;
}
body > header.pv8-public-header .landing-login-links {
  border-top:1px solid #e7eaec;
  display:flex;
  justify-content:space-between;
  margin-top:12px;
  padding-top:10px;
}
body > header.pv8-public-header .landing-login-links a { color:var(--pv8-primary); font-size:12px; }
body > header.pv8-public-header .landing-login-links #hSso {
  border-left:1px solid #e7eaec;
  border-right:1px solid #e7eaec;
  margin:0 8px;
  padding:0 10px;
}


@media(max-width:900px){
  body > header.pv8-public-header .pv8-tagline{display:none}
  /* tablet widths: anchor to the viewport, not the (translated, variable)
     summary, so the box can never be pushed off-screen (bug hunt 2026-10-23) */
  body > header.pv8-public-header .landing-login-popover{position:fixed;left:auto;right:14px;top:70px}
}
@media(max-width:680px){
  body > header.pv8-public-header{gap:8px;min-height:62px;padding:9px 14px}
  body > header.pv8-public-header .pv8-brand h1{font-size:21px}
  body > header.pv8-public-header .landing-register{font-size:12px;padding:8px 10px}
  body > header.pv8-public-header .landing-login-popover{position:fixed;left:14px;right:14px;top:70px}
}
html.pv8-faq-embed body > header.pv8-public-header,
html.pv8-guide-embed body > header.pv8-public-header{display:none}

/* Keep the guided path distinct from the primary trial action. */
body > header.pv8-public-header .landing-nav > a.landing-demo{
  background:transparent;border:1px solid #9aa8b2;border-radius:999px;
  color:#1e303e;font-size:13px;min-height:40px;padding:9px 14px;white-space:nowrap;
  /* centred in its 40px box like the <button> beside it, at every width */
  display:inline-flex;align-items:center;justify-content:center;
}
body > header.pv8-public-header .landing-nav > a.landing-demo:hover{background:#eaf0f4;border-color:#1e303e;color:#10212f}
body > header.pv8-public-header .landing-nav > a.landing-demo:focus-visible{outline:2px solid #11426b;outline-offset:3px}
body > header.pv8-public-header:has(.landing-demo) .pv8-tagline{display:none}
@media(max-width:680px){
  body > header.pv8-public-header:has(.landing-demo){flex-wrap:wrap;gap:6px 8px}
  body > header.pv8-public-header:has(.landing-demo) .landing-nav{order:3;justify-content:center;width:100%;min-width:0;margin-left:0}
  body > header.pv8-public-header .landing-nav > a.landing-demo{font-size:12px;padding:8px 10px;white-space:normal;text-align:center;min-width:0;flex-shrink:1}
  body > header.pv8-public-header:has(.landing-demo) .landing-login > summary{font-size:12px;padding:8px 6px}
  body > header.pv8-public-header:has(.landing-demo) .landing-register{min-width:0;flex-shrink:1}
}

/* Compact desktop navigation; keep How it works and Sign in discoverable. */
body > header.pv8-public-header{min-height:76px;gap:16px;flex-wrap:nowrap;background:#fff;backdrop-filter:none}
body > header.pv8-public-header .pv8-tagline{display:none}
body > header.pv8-public-header .landing-nav{width:auto;order:0;margin-left:auto;gap:8px;min-width:0}
/* One text line: every nav item is a 44 px box with its label centred. As
   blocks, the links kept their text at the top of the 44 px tap target and
   sat 2-4 px above Sign in and Start free (owner, 2026-11-01). */
body > header.pv8-public-header .landing-nav>a,body > header.pv8-public-header .landing-login>summary{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
body > header.pv8-public-header .landing-register{border-radius:6px;background:#11426b;white-space:nowrap}
body > header.pv8-public-header #pv8LangToggle{flex:0 0 auto;max-width:100px;margin:0;min-height:40px;border:1px solid #d7dcdf;border-radius:6px;background:#fff;color:#102c3e}
@media(max-width:680px){
 body > header.pv8-public-header:has(.landing-demo){flex-wrap:nowrap;gap:6px;min-height:64px;padding:8px 12px}
 body > header.pv8-public-header:has(.landing-demo) .landing-nav{order:0;width:auto;margin-left:auto;gap:3px;justify-content:flex-end}
 body > header.pv8-public-header .pv8-brand .pv8-wordmark{width:44px;height:25px;min-width:0}
 body > header.pv8-public-header .landing-nav>a{font-size:12px;padding:8px 4px;white-space:nowrap;flex-shrink:0;line-height:1.3}
 body > header.pv8-public-header .landing-nav>a[href="#pricing"],body > header.pv8-public-header .landing-nav>a[href="/#pricing"]{display:none}
 body > header.pv8-public-header:has(.landing-demo) .landing-login>summary{font-size:12px;padding:8px 4px;min-height:40px;display:flex;align-items:center;white-space:normal;line-height:1.3}
 body > header.pv8-public-header .landing-register{font-size:12px;padding:6px;min-height:40px;white-space:normal;overflow-wrap:anywhere;line-height:1.3;min-width:82px}
 body > header.pv8-public-header #pv8LangToggle{font-size:12px;width:60px;max-width:60px;min-height:40px;padding:4px}
}
@media(max-width:380px){body > header.pv8-public-header:has(.landing-demo){padding:8px;gap:3px}body > header.pv8-public-header .pv8-brand .pv8-wordmark{width:40px;height:23px}body > header.pv8-public-header #pv8LangToggle{width:52px;max-width:52px}}

@media(max-width:380px){body > header.pv8-public-header .landing-nav>a,body > header.pv8-public-header:has(.landing-demo) .landing-login>summary{font-size:12px}body > header.pv8-public-header .landing-register{font-size:12px;min-width:76px}}

/* Keep translated navigation readable beside the full language name at 320px. */
@media(max-width:380px){body > header.pv8-public-header .landing-nav>a[href="/how-it-works"]{max-width:44px;white-space:normal;overflow-wrap:anywhere;display:flex;align-items:center}}


/* Keep the demo and trial paths visible without squeezing translated labels. */
@media(max-width:980px){
 body > header.pv8-public-header:has(.landing-demo){flex-wrap:wrap;gap:2px 8px;padding:3px 12px}
 body > header.pv8-public-header #pv8LangToggle{margin-left:auto}
 body > header.pv8-public-header:has(.landing-demo) .landing-nav{order:3;width:100%;margin-left:0;display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,.8fr) repeat(2,minmax(0,1.2fr));gap:4px}
 body > header.pv8-public-header .landing-nav>a,
 body > header.pv8-public-header .landing-nav>a.landing-demo,
 body > header.pv8-public-header:has(.landing-demo) .landing-login>summary,
 body > header.pv8-public-header .landing-register{justify-content:center;min-width:0;max-width:none;min-height:44px;font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;text-align:center;padding:6px 4px}
 body > header.pv8-public-header .landing-nav>a[href="#pricing"],body > header.pv8-public-header .landing-nav>a[href="/#pricing"]{display:none}
 body > header.pv8-public-header .landing-login-popover{top:100px}
}

/* Approved phone landing: ribbon logo, Sign up, language, drawer. The shared
   desktop/public-page header and its authentication controls stay intact. */
@media(max-width:680px){
 html.landing-drawer-open{overflow:hidden}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header{
   flex-wrap:nowrap;gap:8px;min-height:64px;padding:9px 16px;background:var(--surface-1,#fff);
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .pv8-brand{order:0}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .pv8-brand .pv8-wordmark{width:72px;height:44px;min-width:72px}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-register{
   order:1;display:inline-flex;align-items:center;justify-content:center;flex:0 1 auto;margin-left:auto;
   min-height:44px;min-width:0;padding:8px 12px;border:1px solid var(--series-1,#11426b);border-radius:8px;
   background:transparent;color:var(--series-1,#11426b);font-size:14px;line-height:1.25;box-shadow:none;transform:none;
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-language{
   order:2;display:flex;position:relative;align-items:center;justify-content:center;gap:5px;flex:0 0 52px;min-height:44px;
   color:var(--text-primary,#172831);
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-language-code{display:inline;font-size:14px;font-weight:550}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-language::after{
   content:"";width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:translateY(-2px) rotate(45deg);pointer-events:none;
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header #pv8LangToggle{
   /* Override the global full-name select's !important minimum width so
      its invisible touch target cannot cover the adjacent drawer button. */
   position:absolute;inset:0;opacity:0;width:100%!important;min-width:0!important;max-width:none;height:44px;min-height:44px;margin:0;font-size:16px!important;cursor:pointer;
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-language:focus-within{outline:2px solid var(--series-1,#11426b);outline-offset:2px;border-radius:6px}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-menu-toggle,
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-drawer-close{
   display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;min-width:44px;min-height:44px;
   border:0;border-radius:6px;background:transparent;color:var(--text-primary,#172831);padding:0;cursor:pointer;
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-menu-toggle{order:3}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer[open]{
   position:fixed;inset:0 0 0 auto;margin:0;display:flex;flex-direction:column;align-items:stretch;gap:12px;
   width:min(340px,calc(100vw - 32px));max-width:none;height:100dvh;max-height:none;overflow-y:auto;overscroll-behavior:contain;
   padding:max(12px,env(safe-area-inset-top)) 20px max(20px,env(safe-area-inset-bottom));
   border:0;border-left:1px solid var(--border,#d7dcdf);border-radius:0;background:var(--surface-1,#fff);color:var(--text-primary,#172831);
   box-shadow:-8px 0 32px #101e2a20;
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer::backdrop{background:#101e2a66}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-drawer-close{align-self:flex-end;flex-shrink:0}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer .landing-nav{
   display:flex;flex-direction:column;align-items:stretch;order:0;gap:0;width:100%;margin:0;
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer .landing-nav>a,
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer .landing-login>summary{
   display:flex;align-items:center;justify-content:flex-start;min-height:52px;max-width:none;padding:12px 0;
   border:0;border-bottom:1px solid var(--border,#d7dcdf);border-radius:0;background:transparent;
   color:var(--text-primary,#172831);font-size:16px;line-height:1.4;white-space:normal;overflow-wrap:normal;text-align:left;
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer .landing-register{display:none}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer .landing-login-popover{
   position:static;min-width:0;max-width:none;width:100%;padding:14px 0;border:0;box-shadow:none;background:transparent;
 }
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer .header-login input{font-size:16px;min-height:44px}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer .landing-login-links{flex-wrap:wrap;gap:8px}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-drawer .landing-login-links a{display:inline-flex;align-items:center;font-size:14px;min-height:44px}
}
@media(max-width:360px){
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header{gap:6px;padding-inline:12px}
 body.pv8-welcome[data-mobile-public-nav] > header.pv8-public-header .landing-mobile-register{padding-inline:8px}
}
